diff --git a/afsk/main.c b/afsk/main.c index eed5d351..6aea79c0 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -133,6 +133,7 @@ int reset_count; float uptime_sec; long int uptime; char call[5]; +char sim_yes[10]; int bitRate, mode, bufLen, rsFrames, payloads, rsFrameLen, dataLen, headerLen, syncBits, syncWord, parityLen, samples, frameCnt, samplePeriod; float sleepTime; @@ -203,7 +204,7 @@ int main(int argc, char * argv[]) { } // char * cfg_buf[100]; - char sim_yes[10]; + 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);