|
|
|
@ -4182,6 +4182,7 @@ void program_radio() {
|
|
|
|
|
|
|
|
|
|
|
|
void read_mode() {
|
|
|
|
void read_mode() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Serial.println("Reading mode");
|
|
|
|
char buff[32];
|
|
|
|
char buff[32];
|
|
|
|
File mode_file = LittleFS.open("/.mode", "r");
|
|
|
|
File mode_file = LittleFS.open("/.mode", "r");
|
|
|
|
if (!mode_file) {
|
|
|
|
if (!mode_file) {
|
|
|
|
@ -4191,6 +4192,9 @@ void read_mode() {
|
|
|
|
Serial.println("Reading mode from .mode file");
|
|
|
|
Serial.println("Reading mode from .mode file");
|
|
|
|
sscanf(buff, "%d", &mode);
|
|
|
|
sscanf(buff, "%d", &mode);
|
|
|
|
mode_file.close();
|
|
|
|
mode_file.close();
|
|
|
|
|
|
|
|
Serial.print("Mode is ");
|
|
|
|
|
|
|
|
Serial.print(mode);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|