From 4072f1b9c098e4f8b05f59c9cbe91aea9e34a0d1 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 19 Nov 2022 17:38:09 -0500 Subject: [PATCH] add F format option --- cubesatsim/cubesatsim.ino | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 3a05ed55..3bd637a2 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -4050,8 +4050,15 @@ void serial_input() { new_mode = CW; break; - case 'f': case 'F': + Serial.println("Format flash memory"); + LittleFS.format(); + read_mode(); + new_mode = mode; + read_config_files(); + load_files(); + break; + case 'f': Serial.println("Change to FSK mode"); new_mode = FSK; break;