Commit d4684b29 authored by Dean Camera's avatar Dean Camera
Browse files

Ensure the DFU bootloader disables and clears the activity LED toggle timer...

Ensure the DFU bootloader disables and clears the activity LED toggle timer when a soft-reset to application space is used.
parent 2ff13702
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment