Skip to content

Commit

Permalink
force failure if soft reboot fails
Browse files Browse the repository at this point in the history
  • Loading branch information
hmaarrfk committed Jul 17, 2020
1 parent e98b506 commit 05bea96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions teensy_loader_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ int main(int argc, char **argv)
wait_for_device_to_appear = 1;
}
if (soft_reboot_device) {
if (soft_reboot()) {
printf_verbose("Soft reboot performed\n");
}
if (!soft_reboot()) die("Unable to perform soft reboot.");
printf_verbose("Soft reboot performed\n");
soft_reboot_device = 0;
wait_for_device_to_appear = 1;
}
Expand Down

0 comments on commit 05bea96

Please sign in to comment.