Update main.c move default no

sim-fail-4
Alan Johnston 4 months ago committed by GitHub
parent 81765e3fa1
commit e9d8472804
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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);

Loading…
Cancel
Save

Powered by TurnKey Linux.