From 2999187b2309fb0b2cee22e7884f706386550a5a Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 24 Aug 2022 22:54:09 -0400 Subject: [PATCH] read_mode prints --- cubesatsim/cubesatsim.ino | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index b34e3200..38fff0be 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -4181,7 +4181,8 @@ void program_radio() { } void read_mode() { - + + Serial.println("Reading mode"); char buff[32]; File mode_file = LittleFS.open("/.mode", "r"); if (!mode_file) { @@ -4190,7 +4191,10 @@ void read_mode() { if (mode_file.read((uint8_t *)buff, 31)) { Serial.println("Reading mode from .mode file"); sscanf(buff, "%d", &mode); - mode_file.close(); + mode_file.close(); + Serial.print("Mode is "); + Serial.print(mode); + } } }