diff options
author | Martino Facchin <m.facchin@arduino.cc> | 2015-06-08 11:30:34 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-07-16 13:12:14 +0200 |
commit | 353ef39c23c7c9561fc5357d460c2d9cb3c4f320 (patch) | |
tree | 758a2647d4deb0f73ed6b2d08e962078655af374 /cores/arduino/PluggableUSB.cpp | |
parent | a1ba49e7c8d1067d3f0a87d54aedd2a746fe3342 (diff) |
remove useless variables
Diffstat (limited to 'cores/arduino/PluggableUSB.cpp')
-rw-r--r-- | cores/arduino/PluggableUSB.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/cores/arduino/PluggableUSB.cpp b/cores/arduino/PluggableUSB.cpp index e389c35..b5e94ee 100644 --- a/cores/arduino/PluggableUSB.cpp +++ b/cores/arduino/PluggableUSB.cpp @@ -25,9 +25,6 @@ #define MAX_MODULES 6 -static u8 startIf = CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT; -static u8 firstEp = CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT; - static u8 lastIf = CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT; static u8 lastEp = CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT; @@ -36,18 +33,18 @@ extern u8 _initEndpoints[]; PUSBCallbacks cbs[MAX_MODULES]; u8 modules_count = 0; -int PUSB_GetInterface(u8* interfaceNum) +int8_t PUSB_GetInterface(u8* interfaceNum) { - int ret = 0; + int8_t ret = 0; for (u8 i=0; i<modules_count; i++) { ret = cbs[i].getInterface(interfaceNum); } return ret; } -int PUSB_GetDescriptor(int t) +int8_t PUSB_GetDescriptor(int8_t t) { - int ret = 0; + int8_t ret = 0; for (u8 i=0; i<modules_count && ret == 0; i++) { ret = cbs[i].getDescriptor(t); } @@ -63,7 +60,7 @@ bool PUSB_Setup(Setup& setup, u8 j) return ret; } -int PUSB_AddFunction(PUSBCallbacks *cb, u8* interface) +int8_t PUSB_AddFunction(PUSBCallbacks *cb, u8* interface) { if (modules_count >= MAX_MODULES) { return 0; |