Skip to content

Commit 40a2b1c

Browse files
committed
[HID] added 'const' qualifier in HID initialization
See arduino/Arduino#3840 (comment)
1 parent 5207d00 commit 40a2b1c

File tree

1 file changed

+1
-1
lines changed
  • arduino/avr/libraries/HID

1 file changed

+1
-1
lines changed

Diff for: arduino/avr/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)