From 6151972b7438a30c015e91541cb8b9e4778b49c8 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Wed, 7 Oct 2015 18:45:10 +0200 Subject: [PATCH] [PUSB] Changed Interface + Endpoint to unsigned variables The iterations in the for loop also use unsigned and the setup struct etc as well. There was no change in HID required since we just init the inherited variables via constructor and the type is never mentioned. --- hardware/arduino/avr/cores/arduino/PluggableUSB.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hardware/arduino/avr/cores/arduino/PluggableUSB.h b/hardware/arduino/avr/cores/arduino/PluggableUSB.h index 433e23efd..b7c52d610 100644 --- a/hardware/arduino/avr/cores/arduino/PluggableUSB.h +++ b/hardware/arduino/avr/cores/arduino/PluggableUSB.h @@ -27,12 +27,12 @@ class PUSBListNode { public: - PUSBListNode(int8_t numEps, int8_t numIfs, uint8_t *epType) : + PUSBListNode(uint8_t numEps, uint8_t numIfs, uint8_t *epType) : numEndpoints(numEps), numInterfaces(numIfs), endpointType(epType) { } inline uint8_t interface() const { return pluggedInterface; } - inline int8_t endpoint() const { return pluggedEndpoint; } + inline uint8_t endpoint() const { return pluggedEndpoint; } protected: virtual bool setup(USBSetup& setup, uint8_t interfaceNum) = 0; @@ -40,10 +40,10 @@ protected: virtual int getDescriptor(int8_t t) = 0; uint8_t pluggedInterface; - int8_t pluggedEndpoint; + uint8_t pluggedEndpoint; - const int8_t numEndpoints; - const int8_t numInterfaces; + const uint8_t numEndpoints; + const uint8_t numInterfaces; const uint8_t *endpointType; PUSBListNode *next = NULL;