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

libraries/HID/src/HID.cpp

Lines changed: 1 addition & 2 deletions
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);

libraries/HID/src/HID.h

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy