Skip to content

Commit f1360de

Browse files
committed
Move idle member initialization from cpp to header.
1 parent b82bd82 commit f1360de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/HID/HID.cpp

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

268268
HID_::HID_(void) : PluggableUSBModule(2, 1, epType),
269-
protocol(HID_REPORT_PROTOCOL), idle(1)
269+
protocol(HID_REPORT_PROTOCOL)
270270
{
271271
epType[0] = EP_TYPE_INTERRUPT_IN;
272272
epType[1] = EP_TYPE_INTERRUPT_OUT;

src/HID/HID.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class HID_ : public PluggableUSBModule
145145
uint16_t descriptorSize = 1;
146146

147147
uint8_t protocol;
148-
uint8_t idle;
148+
uint8_t idle = 1;
149149

150150
// Buffer pointer to hold the feature data
151151
HIDReport* rootReport = nullptr;

0 commit comments

Comments
 (0)