From 27c1832acab4bcc4527340721733d53afde33a65 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 30 Sep 2015 16:48:11 +0200 Subject: [PUSB] The latest fields are now set via constructor --- libraries/HID/HID.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libraries/HID') 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); } -- cgit v1.2.3-18-g5258