From c42a7b25987a47768b5f95a778e4efd8428a7454 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 25 Feb 2023 12:08:24 -0500 Subject: [PATCH] flush before reboot, print + each time get_input called --- cubesatsim/cubesatsim.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index d3968bd8..59042f20 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -4958,6 +4958,7 @@ void start_clockgen() { } void get_input() { + Serial.print("+"); // if (((skip++)%2) == 0) serial_input(); @@ -4987,7 +4988,8 @@ void get_input() { // mode = new_mode; // change modes if button pressed write_mode(new_mode); - Serial.println("Rebooting..."); + Serial.println("Rebooting..."); + Serial.flush(); watchdog_reboot (0, SRAM_END, 10); // restart Pico sleep(20.0);