diff --git a/main.c b/main.c index 13187c81..be581eda 100644 --- a/main.c +++ b/main.c @@ -28,7 +28,8 @@ int main(int argc, char * argv[]) { printf("\n\nCubeSatSim v2.2 starting...\n\n"); wiringPiSetup(); - + + strcpy(fail_yes, "no"); // Open configuration file with callsign and reset count FILE * config_file = fopen("/home/pi/CubeSatSim/sim.cfg", "r"); if (config_file == NULL) { @@ -292,7 +293,6 @@ int main(int argc, char * argv[]) { transmit = TRUE; } - strcpy(fail_yes, "no"); config_file = fopen("sim.cfg", "w"); fprintf(config_file, "%s %d %8.4f %8.4f %s %d %s %s %s %d %d %s %d", call, reset_count, lat_file, long_file, sim_yes, squelch, tx, rx, hab_yes, rx_pl, tx_pl, fail_yes, fail_time);