mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 12:51:47 +00:00
Merge pull request #47 from NicoHood/patch-2
Add a clean up delay in the CDC bootloader before disconnect to fix transient communication issues (thanks to NicoHood).
This commit is contained in:
commit
bf3a95d5a7
@ -156,6 +156,9 @@ int main(void)
|
|||||||
CDC_Task();
|
CDC_Task();
|
||||||
USB_USBTask();
|
USB_USBTask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Wait a short time to end all USB transactions and then disconnect */
|
||||||
|
_delay_us(1000);
|
||||||
|
|
||||||
/* Disconnect from the host - USB interface will be reset later along with the AVR */
|
/* Disconnect from the host - USB interface will be reset later along with the AVR */
|
||||||
USB_Detach();
|
USB_Detach();
|
||||||
|
Loading…
Reference in New Issue
Block a user