Skip to content

Commit 79b596d

Browse files
haydendonaldtridge
authored andcommitted
AP_Periph: Prepare reboot before rebooting via AP_Periph:reboot()
Call AP_Periph:prepare_reboot() before rebooting via AP_Periph:reboot()
1 parent e4ba4cc commit 79b596d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tools/AP_Periph/AP_Periph.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ void AP_Periph_FW::prepare_reboot()
627627
*/
628628
void AP_Periph_FW::reboot(bool hold_in_bootloader)
629629
{
630+
prepare_reboot();
630631
hal.scheduler->reboot(hold_in_bootloader);
631632
}
632633

0 commit comments

Comments
 (0)