From 6b4a51ae6497416be98571db8455031f88539e28 Mon Sep 17 00:00:00 2001 From: Dean Date: Mon, 21 May 2012 16:37:34 +0000 Subject: Turn off watchdog before jumping to the user application in the DFU and CDC based bootloaders, for the specific case of /HWB being low during reset (where the bootloader will re-enter). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2233 d5102386-fcda-11dd-9fdb-3debd5008f28 --- Bootloaders/CDC/BootloaderCDC.c | 6 ++++++ Bootloaders/DFU/BootloaderDFU.c | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Bootloaders/CDC/BootloaderCDC.c b/Bootloaders/CDC/BootloaderCDC.c index 211b054e..7bff8999 100644 --- a/Bootloaders/CDC/BootloaderCDC.c +++ b/Bootloaders/CDC/BootloaderCDC.c @@ -73,7 +73,13 @@ void Application_Jump_Check(void) /* If the reset source was the bootloader and the key is correct, clear it and jump to the application */ if ((MCUSR & (1 << WDRF)) && (MagicBootKey == MAGIC_BOOT_KEY)) { + /* Turn off the watchdog */ + MCUSR &= ~(1<