Skip to content

Commit 801a11c

Browse files
committed
Move descriptorSize initialization from cpp to header.
1 parent 321fca0 commit 801a11c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/HID/src/HID.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ bool HID_::setup(USBSetup& setup)
147147
}
148148

149149
HID_::HID_(void) : PluggableUSBModule(1, 1, epType),
150-
rootNode(NULL), descriptorSize(0),
150+
rootNode(NULL),
151151
protocol(HID_REPORT_PROTOCOL), idle(1)
152152
{
153153
epType[0] = EP_TYPE_INTERRUPT_IN;

libraries/HID/src/HID.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class HID_ : public PluggableUSBModule
107107
uint8_t epType[1];
108108

109109
HIDSubDescriptor* rootNode;
110-
uint16_t descriptorSize;
110+
uint16_t descriptorSize = 0;
111111

112112
uint8_t protocol;
113113
uint8_t idle;

0 commit comments

Comments
 (0)