read_mode prints

pull/183/head
alanbjohnston 3 years ago committed by GitHub
parent 3e5eff6d64
commit 2999187b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save

Powered by TurnKey Linux.