Skip to content

Commit a54b14c

Browse files
committed
Move protocol member initialization from cpp to header.
1 parent 0105748 commit a54b14c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: libraries/HID/src/HID.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ bool HID_::setup(USBSetup& setup)
147147
}
148148

149149
HID_::HID_(void) : PluggableUSBModule(1, 1, epType),
150-
rootNode(NULL),
151-
protocol(HID_REPORT_PROTOCOL)
150+
rootNode(NULL)
152151
{
153152
epType[0] = EP_TYPE_INTERRUPT_IN;
154153
PluggableUSB().plug(this);

Diff for: libraries/HID/src/HID.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class HID_ : public PluggableUSBModule
109109
HIDSubDescriptor* rootNode;
110110
uint16_t descriptorSize = 0;
111111

112-
uint8_t protocol;
112+
uint8_t protocol = HID_REPORT_PROTOCOL;
113113
uint8_t idle = 1;
114114
};
115115

0 commit comments

Comments
 (0)