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

@ -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);
}
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.