mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-06-06 00:12:47 +00:00
Ensure the DFU bootloader disables and clears the activity LED toggle timer when a soft-reset to application space is used.
This commit is contained in:
parent
2ff1370221
commit
d4684b29b9
@ -193,6 +193,10 @@ static void ResetHardware(void)
|
||||
/* Shut down the USB and other board hardware drivers */
|
||||
USB_Disable();
|
||||
LEDs_Disable();
|
||||
|
||||
/* Disable Bootloader active LED toggle timer */
|
||||
TIMSK1 = 0;
|
||||
TCCR1B = 0;
|
||||
|
||||
/* Relocate the interrupt vector table back to the application section */
|
||||
MCUCR = (1 << IVCE);
|
||||
|
Loading…
Reference in New Issue
Block a user