From 37db51b524f9bbbc9ebd1610088d810f90044120 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 25 Feb 2023 12:32:10 -0500 Subject: [PATCH] all reboots to 500ms and flush --- cubesatsim/cubesatsim.ino | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 4f325c4e..c9fcfc96 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -4604,8 +4604,9 @@ void prompt_for_input() { break; case PROMPT_REBOOT: - Serial.println("Rebooting..."); - watchdog_reboot (0, SRAM_END, 10); // restart Pico + Serial.println("Rebooting..."); + Serial.flush(); + watchdog_reboot (0, SRAM_END, 500); // restart Pico sleep(20.0); break; @@ -4614,7 +4615,8 @@ void prompt_for_input() { // Serial.println("Reboot or power cycle to restart the CubeSatSim"); // while (1) ; // infinite loop Serial.println("Rebooting..."); - watchdog_reboot (0, SRAM_END, 10); // restart Pico + Serial.flush(); + watchdog_reboot (0, SRAM_END, 500); // restart Pico sleep(20.0); break;