There was an error while loading. Please reload this page.
2 parents 317513b + 9e9f54d commit 815d311Copy full SHA for 815d311
cores/arduino/USBCore.cpp
@@ -496,14 +496,13 @@ bool SendConfiguration(int maxlen)
496
static
497
bool SendDescriptor(USBSetup& setup)
498
{
499
-int ret;
500
u8 t = setup.wValueH;
501
if (USB_CONFIGURATION_DESCRIPTOR_TYPE == t)
502
return SendConfiguration(setup.wLength);
503
504
InitControl(setup.wLength);
505
#ifdef PLUGGABLE_USB_ENABLED
506
-ret = PluggableUSB().getDescriptor(setup);
+int ret = PluggableUSB().getDescriptor(setup);
507
if (ret != 0) {
508
return (ret > 0 ? true : false);
509
}
0 commit comments