Update cubesatsim.ino

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

@ -4182,6 +4182,7 @@ void program_radio() {
void read_mode() { void read_mode() {
char buff[32];
File mode_file = LittleFS.open("/.mode", "r"); File mode_file = LittleFS.open("/.mode", "r");
if (!mode_file) { if (!mode_file) {
Serial.println("Creating mode file"); Serial.println("Creating mode file");
@ -4203,7 +4204,6 @@ void write_mode() {
Serial.println("Writing .mode file"); Serial.println("Writing .mode file");
File mode_file = LittleFS.open("/.mode", "w+"); File mode_file = LittleFS.open("/.mode", "w+");
sprintf(buff, "%d", mode); sprintf(buff, "%d", mode);
Serial.println("Writing string"); Serial.println("Writing string");
print_string(buff); print_string(buff);

Loading…
Cancel
Save

Powered by TurnKey Linux.