Skip to content

Commit bf5eaa7

Browse files
committed
[HID] added 'const' qualifier in HID initialization
See arduino/Arduino#3840 (comment)
1 parent 58135cb commit bf5eaa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/HID/HID.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
class HIDDescriptorListNode {
4848
public:
4949
HIDDescriptorListNode *next = NULL;
50-
HIDDescriptorListNode(const void *d, uint16_t l) : data(d), length(l) { }
50+
HIDDescriptorListNode(const void *d, const uint16_t l) : data(d), length(l) { }
5151

5252
const void* data;
5353
uint16_t length;

0 commit comments

Comments
 (0)