aboutsummaryrefslogtreecommitdiff
path: root/cores
diff options
context:
space:
mode:
authorAlexander Entinger <consulting@lxrobotics.com>2019-09-16 10:06:58 +0200
committerGitHub <noreply@github.com>2019-09-16 10:06:58 +0200
commit815d3112a6a00015a8af7f8eddce3b9f560587e6 (patch)
tree362b22c659ce83b28eab72bf1fd562aa8106d73e /cores
parent317513b9c989de24d438de7ac55d701b738881e2 (diff)
parent9e9f54d34dbab45e152d8163e048a879d736eedf (diff)
Merge pull request #76 from dmadison/pluggable-unused
Fix unused variable warning for non-pluggable USB in SendDescriptor
Diffstat (limited to 'cores')
-rw-r--r--cores/arduino/USBCore.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp
index c0a4c7c..dc6bc38 100644
--- a/cores/arduino/USBCore.cpp
+++ b/cores/arduino/USBCore.cpp
@@ -496,14 +496,13 @@ bool SendConfiguration(int maxlen)
static
bool SendDescriptor(USBSetup& setup)
{
- int ret;
u8 t = setup.wValueH;
if (USB_CONFIGURATION_DESCRIPTOR_TYPE == t)
return SendConfiguration(setup.wLength);
InitControl(setup.wLength);
#ifdef PLUGGABLE_USB_ENABLED
- ret = PluggableUSB().getDescriptor(setup);
+ int ret = PluggableUSB().getDescriptor(setup);
if (ret != 0) {
return (ret > 0 ? true : false);
}