From 4a1921932de509ea64c8521ab610f7bb1160884c Mon Sep 17 00:00:00 2001 From: NicoHood Date: Wed, 7 Oct 2015 18:45:10 +0200 Subject: [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. --- cores/arduino/PluggableUSB.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cores/arduino/PluggableUSB.h') diff --git a/cores/arduino/PluggableUSB.h b/cores/arduino/PluggableUSB.h index 433e23e..b7c52d6 100644 --- a/cores/arduino/PluggableUSB.h +++ b/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; -- cgit v1.2.3-18-g5258