Fix control request hang in Printer device class driver (thanks to Juergen Borleis).
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 15 Jun 2020 12:02:06 +0000 (22:02 +1000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 15 Jun 2020 12:02:06 +0000 (22:02 +1000)
LUFA/DoxygenPages/ChangeLog.txt
LUFA/Drivers/USB/Class/Device/PrinterClassDevice.c

index a84ca3d..557587b 100644 (file)
@@ -34,6 +34,7 @@
   *   - Fixed USB_STRING_DESCRIPTOR_ARRAY() not accepting more than two byte long arrays
   *   - Fixed HID report parser corruption when parsing PUSH and POP report item elements
   *   - Fixed HID report parser incorrectly decoding 32-bit USAGE elements
+  *   - Fixed control request hangs in the Printer device class driver (thanks to Juergen Borleis)
   *  - Library Applications:
   *   - Fixed bootloaders not disabling global interrupts during erase and write operations (thanks to Zoltan)
   *   - Fixed bootloaders accepting flash writes to the bootloader region (thanks to NicoHood)
index d6cd095..940aacf 100644 (file)
@@ -77,6 +77,8 @@ void PRNT_Device_ProcessControlRequest(USB_ClassInfo_PRNT_Device_t* const PRNTIn
                                }
 
                                Endpoint_Write_8(PRNTInterfaceInfo->State.PortStatus);
+                               Endpoint_ClearIN();
+
                                Endpoint_ClearStatusStage();
                        }