mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
As Bob-The-Khun suggested, resetting the USB peripheral solves the huge startup delays that happen when a WDT reset happens and we are connected through the native port
This commit is contained in:
parent
1cb810ff1c
commit
c5730cf711
@ -301,7 +301,11 @@ void usb_task_init(void) {
|
|||||||
|
|
||||||
uint16_t *ptr;
|
uint16_t *ptr;
|
||||||
|
|
||||||
|
// Disable USB peripheral so we start clean and avoid lockups
|
||||||
|
otg_disable();
|
||||||
udd_disable();
|
udd_disable();
|
||||||
|
|
||||||
|
// Set the USB interrupt to our stack
|
||||||
UDD_SetStack(&USBD_ISR);
|
UDD_SetStack(&USBD_ISR);
|
||||||
|
|
||||||
// Start USB stack to authorize VBus monitoring
|
// Start USB stack to authorize VBus monitoring
|
||||||
|
Loading…
Reference in New Issue
Block a user