fixed writing sim.cfg

pull/87/head
alanbjohnston 5 years ago committed by GitHub
parent 2512a1259f
commit 958279e2c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save

Powered by TurnKey Linux.