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

@ -353,9 +353,10 @@ void read_config_file() {
File config_file = LittleFS.open("/sim.cfg", "r");
// FILE * config_file = fopen("/sim.cfg", "r");
if (config_file == NULL) {
if (!config_file) {
Serial.println("Creating config file.");
config_file = fopen("/sim.cfg", "w+");
// config_file = fopen("/sim.cfg", "w+");
config_file = LittleFS.open("/sim.cfg", "w+");
// fprintf(config_file, "%s %d", " ", 100);
// sprintf(buff, "%d\n", cnt);

Loading…
Cancel
Save

Powered by TurnKey Linux.