aboutsummaryrefslogtreecommitdiff
path: root/libraries/HID/HID.cpp
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-09-30 16:48:11 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-10-02 11:59:23 +0200
commit27c1832acab4bcc4527340721733d53afde33a65 (patch)
tree0274f368d7ac224eef19e8f95a27680b2229dc64 /libraries/HID/HID.cpp
parent90652295956b6f4bcccb740aeb4f7c546327e499 (diff)
[PUSB] The latest fields are now set via constructor
Diffstat (limited to 'libraries/HID/HID.cpp')
-rw-r--r--libraries/HID/HID.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/libraries/HID/HID.cpp b/libraries/HID/HID.cpp
index 5685957..d358f45 100644
--- a/libraries/HID/HID.cpp
+++ b/libraries/HID/HID.cpp
@@ -128,12 +128,9 @@ bool HID_::setup(USBSetup& setup, uint8_t i)
}
}
-HID_::HID_(void)
+HID_::HID_(void) : PUSBListNode(1, 1, epType)
{
- numEndpoints = 1;
- numInterfaces = 1;
- endpointType = epType;
-
+ // XXX: Shall this be done in PUSBListNode(...) constructor?
PluggableUSB.plug(this);
}