Skip to content

Commit 6f7b59f

Browse files
committed
Improved readablitity
1 parent 3a89db6 commit 6f7b59f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Bootloaders/CDC/BootloaderCDC.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,16 @@ void Application_Jump_Check(void)
102102
}
103103

104104
/* On a power-on reset, we ALWAYS want to go to the sketch if there is one. */
105-
else if ((mcusr_state & (1 << PORF))) {
105+
else if (mcusr_state & (1 << PORF)) {
106106
JumpToApplication = true;
107107
}
108108

109109
/* On a watchdog reset, if the bootKey isn't set, and there's a sketch, we should just
110110
* go straight to the sketch. */
111-
else if ((mcusr_state & (1 << WDRF)) && (MagicBootKey != MAGIC_BOOT_KEY)) {
112-
JumpToApplication = true;
111+
else if (mcusr_state & (1 << WDRF)) {
112+
if(MagicBootKey != MAGIC_BOOT_KEY){
113+
JumpToApplication = true;
114+
}
113115
}
114116
#elif ((BOARD == BOARD_XPLAIN) || (BOARD == BOARD_XPLAIN_REV1))
115117
/* Disable JTAG debugging */

0 commit comments

Comments
 (0)