From 663c55706b5b79109dfe17d440cba4de95cbdc25 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 7 Oct 2015 13:21:21 +0200 Subject: [PUSB] renamed some parameters --- cores/arduino/PluggableUSB.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cores/arduino/PluggableUSB.cpp') diff --git a/cores/arduino/PluggableUSB.cpp b/cores/arduino/PluggableUSB.cpp index 7125775..95d4079 100644 --- a/cores/arduino/PluggableUSB.cpp +++ b/cores/arduino/PluggableUSB.cpp @@ -25,12 +25,12 @@ extern uint8_t _initEndpoints[]; -int PluggableUSB_::getInterface(uint8_t* interfaceNum) +int PluggableUSB_::getInterface(uint8_t* interfaceCount) { int sent = 0; PUSBListNode* node; for (node = rootNode; node; node = node->next) { - int res = node->getInterface(interfaceNum); + int res = node->getInterface(interfaceCount); if (res < 0) return -1; sent += res; @@ -50,11 +50,11 @@ int PluggableUSB_::getDescriptor(int8_t type) return 0; } -bool PluggableUSB_::setup(USBSetup& setup, uint8_t j) +bool PluggableUSB_::setup(USBSetup& setup, uint8_t interfaceNum) { PUSBListNode* node; for (node = rootNode; node; node = node->next) { - if (node->setup(setup, j)) { + if (node->setup(setup, interfaceNum)) { return true; } } -- cgit v1.2.3-18-g5258