X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/1d433d4506113c95285f633e3553ff62d4cfd05d..cae0fa73d70f82820bd8d71c4d60b6aff8ccf3cb:/Bootloaders/DFU/BootloaderDFU.c diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c index 04b52f3f8..41b3e37ba 100644 --- a/Bootloaders/DFU/BootloaderDFU.c +++ b/Bootloaders/DFU/BootloaderDFU.c @@ -38,9 +38,9 @@ /** Flag to indicate if the bootloader is currently running in secure mode, disallowing memory operations * other than erase. This is initially set to the value set by SECURE_MODE, and cleared by the bootloader - * once a memory erase has completed. + * once a memory erase has completed in a bootloader session. */ -bool IsSecure = SECURE_MODE; +bool IsSecure = SECURE_MODE; /** Flag to indicate if the bootloader should be running, or should exit and allow the application code to run * via a soft reset. When cleared, the bootloader will abort, the USB interface will shut down and the application @@ -155,7 +155,7 @@ void SetupHardware(void) void ResetHardware(void) { /* Shut down the USB subsystem */ - USB_ShutDown(); + USB_Disable(); /* Relocate the interrupt vector table back to the application section */ MCUCR = (1 << IVCE);