Skip to content

Commit

Permalink
AP_Periph: Prepare reboot before rebooting via AP_Periph:reboot()
Browse files Browse the repository at this point in the history
Call AP_Periph:prepare_reboot() before rebooting via AP_Periph:reboot()
  • Loading branch information
haydendonald authored and tridge committed Nov 19, 2024
1 parent e4ba4cc commit 79b596d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Tools/AP_Periph/AP_Periph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ void AP_Periph_FW::prepare_reboot()
*/
void AP_Periph_FW::reboot(bool hold_in_bootloader)
{
prepare_reboot();
hal.scheduler->reboot(hold_in_bootloader);
}

Expand Down

0 comments on commit 79b596d

Please sign in to comment.