get rid of strcmp

pull/251/head
alanbjohnston 3 years ago committed by GitHub
parent 69efb65d67
commit 3391413147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -418,7 +418,8 @@ void read_config_file() {
// }
Serial.printf("sim_yes: %s\n", sim_yes);
char yes_string[] = "yes";
if (strcmp(sim_yes, yes_string) == 0) {
// if (strcmp(sim_yes, yes_string) == 0) {
if (sim_yes[0] == 'y') {
sim_mode = true;
Serial.println("Simulated telemetry mode set by config file");
}

Loading…
Cancel
Save

Powered by TurnKey Linux.