From 6e43b79a08052aaa8f01b39910bf4de419f7a109 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 3 Jun 2021 06:02:11 -0400 Subject: [PATCH] typos --- afsk/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index a05b16fc..09af7fd2 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -203,10 +203,10 @@ 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); + char sim_yes[10]; + fscanf(config_file, "%s %d %f %f", 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); + 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; if ((fabs(lat_file) > 0) && (fabs(lat_file) < 90.0) && (fabs(long_file) > 0) && (fabs(long_file) < 180.0)) {