From 3391413147b471e7f057396cdf89b66d2b844a66 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 5 Dec 2022 16:47:32 -0500 Subject: [PATCH] get rid of strcmp --- cubesatsim/cubesatsim.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 3ecb4df3..a5afd5ca 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -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"); }