AP_Periph: Prepare reboot before rebooting via AP_Periph:reboot()

Call AP_Periph:prepare_reboot() before rebooting via AP_Periph:reboot()
This commit is contained in:
Hayden Donald 2024-11-18 10:53:47 +11:00 committed by Andrew Tridgell
parent e4ba4cc885
commit 79b596d229
1 changed files with 1 additions and 0 deletions

View File

@ -627,6 +627,7 @@ void AP_Periph_FW::prepare_reboot()
*/ */
void AP_Periph_FW::reboot(bool hold_in_bootloader) void AP_Periph_FW::reboot(bool hold_in_bootloader)
{ {
prepare_reboot();
hal.scheduler->reboot(hold_in_bootloader); hal.scheduler->reboot(hold_in_bootloader);
} }