From b7f6b0dbffa7fe3df60ce2d9fe5ff30d108a4cd9 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 3 Jun 2021 06:04:26 -0400 Subject: [PATCH] added sim_yes to sim.cfg file --- afsk/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afsk/main.c b/afsk/main.c index 09af7fd2..fad71022 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -204,7 +204,7 @@ int main(int argc, char * argv[]) { // char * cfg_buf[100]; char sim_yes[10]; - fscanf(config_file, "%s %d %f %f", call, & reset_count, & lat_file, & long_file, sim_yes); + fscanf(config_file, "%s %d %f %f %s", call, & reset_count, & lat_file, & long_file, sim_yes); fclose(config_file); printf("Config file /home/pi/CubeSatSim/sim.cfg contains %s %d %f %f %s\n", call, reset_count, lat_file, long_file, sim_yes); reset_count = (reset_count + 1) % 0xffff;