Skip to content

Commit 2c31d93

Browse files
committed
Move descriptorSize initialization from cpp to header.
1 parent 395e4a9 commit 2c31d93

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/HID/HID.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ bool HID_::setup(USBSetup& setup)
266266
}
267267

268268
HID_::HID_(void) : PluggableUSBModule(2, 1, epType),
269-
descriptorSize(0),
270269
protocol(HID_REPORT_PROTOCOL), idle(1)
271270
{
272271
epType[0] = EP_TYPE_INTERRUPT_IN;

src/HID/HID.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class HID_ : public PluggableUSBModule
142142
uint8_t epType[2];
143143

144144
HIDSubDescriptor* rootNode = nullptr;
145-
uint16_t descriptorSize;
145+
uint16_t descriptorSize = 0;
146146

147147
uint8_t protocol;
148148
uint8_t idle;

0 commit comments

Comments
 (0)