aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorDavid Madison <dmadison@users.noreply.github.com>2019-02-15 13:54:21 -0500
committerDavid Madison <dmadison@users.noreply.github.com>2019-02-15 13:54:21 -0500
commitfbad822c99b957b513b018cb135b41051f93cc11 (patch)
treef9a809cca38ec5e538f7134b04770ce56063d5d6 /cores/arduino
parent3851c3dea620a672d266e798f2262f4709136fb7 (diff)
Fix warning related to disabling Pluggable HID
Unused if pluggable USB is not enabled. Should submit a PR to fix this in the main repo...
Diffstat (limited to 'cores/arduino')
-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 81f689d..b5a2be3 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);
}