Skip to content

Commit 651519d

Browse files
committed
[HID] added 'const' qualifier in HID initialization
See arduino/Arduino#3840 (comment)
1 parent 950dbe1 commit 651519d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/HID/HID.h

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

0 commit comments

Comments
 (0)