diff options
author | Alexander Entinger <consulting@lxrobotics.com> | 2019-09-16 10:06:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-16 10:06:58 +0200 |
commit | 815d3112a6a00015a8af7f8eddce3b9f560587e6 (patch) | |
tree | 362b22c659ce83b28eab72bf1fd562aa8106d73e | |
parent | 317513b9c989de24d438de7ac55d701b738881e2 (diff) | |
parent | 9e9f54d34dbab45e152d8163e048a879d736eedf (diff) |
Merge pull request #76 from dmadison/pluggable-unused
Fix unused variable warning for non-pluggable USB in SendDescriptor
-rw-r--r-- | cores/arduino/USBCore.cpp | 3 |
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); } |