From 79b596d229be9ce04d6fba38a37bd8438badd6b4 Mon Sep 17 00:00:00 2001 From: Hayden Donald Date: Mon, 18 Nov 2024 10:53:47 +1100 Subject: [PATCH] AP_Periph: Prepare reboot before rebooting via AP_Periph:reboot() Call AP_Periph:prepare_reboot() before rebooting via AP_Periph:reboot() --- Tools/AP_Periph/AP_Periph.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/AP_Periph/AP_Periph.cpp b/Tools/AP_Periph/AP_Periph.cpp index 2ab0e4437a..f9479d285a 100644 --- a/Tools/AP_Periph/AP_Periph.cpp +++ b/Tools/AP_Periph/AP_Periph.cpp @@ -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); }