Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Added watchdog reset in safeDelay
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertLRead committed Sep 14, 2023
1 parent 8c6b2b5 commit 575bcee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions firmware-development/flashmanagement/flashmanagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Configuration configuration;

void
safeDelay(uint16_t timeout) {
watchdogReset();
if (timeout >= WATCH_DOG_TIME) {
for (uint8_t i = 0; i < timeout / (WATCH_DOG_TIME / 2); i++) {
watchdogReset();
Expand Down

0 comments on commit 575bcee

Please sign in to comment.