Update main.c move wiring pi setup

beta-v1.3.1-freq
Alan Johnston 2 years ago committed by GitHub
parent b8d4f5ea49
commit b95b42c7ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -45,6 +45,8 @@ int main(int argc, char * argv[]) {
printf("\n\nCubeSatSim v1.3b starting...\n\n");
wiringPiSetup();
// Open configuration file with callsign and reset count
FILE * config_file = fopen("/home/pi/CubeSatSim/sim.cfg", "r");
if (config_file == NULL) {
@ -88,8 +90,6 @@ int main(int argc, char * argv[]) {
if (strcmp(sim_yes, "yes") == 0)
sim_mode = TRUE;
wiringPiSetup();
// FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r");
FILE * rpitx_stop = popen("sudo systemctl restart rpitx", "r");
pclose(rpitx_stop);

Loading…
Cancel
Save

Powered by TurnKey Linux.