Skip to content

Commit f3a31a0

Browse files
committed
Move rootNode member initialization from cpp to header.
1 parent a54b14c commit f3a31a0

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
@@ -146,8 +146,7 @@ bool HID_::setup(USBSetup& setup)
146146
return false;
147147
}
148148

149-
HID_::HID_(void) : PluggableUSBModule(1, 1, epType),
150-
rootNode(NULL)
149+
HID_::HID_(void) : PluggableUSBModule(1, 1, epType)
151150
{
152151
epType[0] = EP_TYPE_INTERRUPT_IN;
153152
PluggableUSB().plug(this);

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class HID_ : public PluggableUSBModule
106106
private:
107107
uint8_t epType[1];
108108

109-
HIDSubDescriptor* rootNode;
109+
HIDSubDescriptor* rootNode = NULL;
110110
uint16_t descriptorSize = 0;
111111

112112
uint8_t protocol = HID_REPORT_PROTOCOL;

0 commit comments

Comments
 (0)