Skip to content

Commit 0105748

Browse files
committed
Move idle member initialization from cpp to header.
1 parent 801a11c commit 0105748

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
@@ -148,7 +148,7 @@ bool HID_::setup(USBSetup& setup)
148148

149149
HID_::HID_(void) : PluggableUSBModule(1, 1, epType),
150150
rootNode(NULL),
151-
protocol(HID_REPORT_PROTOCOL), idle(1)
151+
protocol(HID_REPORT_PROTOCOL)
152152
{
153153
epType[0] = EP_TYPE_INTERRUPT_IN;
154154
PluggableUSB().plug(this);

libraries/HID/src/HID.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class HID_ : public PluggableUSBModule
110110
uint16_t descriptorSize = 0;
111111

112112
uint8_t protocol;
113-
uint8_t idle;
113+
uint8_t idle = 1;
114114
};
115115

116116
// Replacement for global singleton.

0 commit comments

Comments
 (0)