Skip to content

Commit

Permalink
[at] avoid triggering task watchdog by delaying a bit in a busy loop
Browse files Browse the repository at this point in the history
  • Loading branch information
avtolstoy committed Nov 30, 2020
1 parent 7632e3e commit ba615c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/at_command_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ int AtCommandManager::init() {
int ret = 0;
do {
ret = xmodem.run();
// Otherwise task watchdog gets triggered
vTaskDelay(1);
} while (ret == XmodemReceiver::RUNNING);
// Discard any extra CAN bytes that might have been sent by the sender at the end of
// the XModem transfer
Expand Down

0 comments on commit ba615c7

Please sign in to comment.