Skip to content

Commit

Permalink
bootloader: fix disabled watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
surban committed Sep 6, 2023
1 parent cccd1cf commit df303d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openemc-bootloader/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ fn main() -> ! {
backup::write(BACKUP_REG_BOOT_REASON, BootReason::SurpriseInBootloader as _);

// Start watchdog.
if boot_reason != BootReason::PowerOff as _ && boot_reason == BootReason::PowerOffBootloader as _ {
if boot_reason != BootReason::PowerOff as _ && boot_reason != BootReason::PowerOffBootloader as _ {
watchdog::start();
}

Expand Down

0 comments on commit df303d9

Please sign in to comment.