Update main.c print sim mode

beta-v1.3.1.1-hab
Alan Johnston 2 years ago committed by GitHub
parent 41070be350
commit bdb17d7625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,12 +88,14 @@ int main(int argc, char * argv[]) {
newGpsTime = millis(); newGpsTime = millis();
} }
if (strcmp(sim_yes, "yes") == 0) if (strcmp(sim_yes, "yes") == 0) {
sim_mode = TRUE; sim_mode = TRUE;
fprintf(stderr, "Sim mode is ON\n");
if (strcmp(hab_yes, "yes") == 0) }
if (strcmp(hab_yes, "yes") == 0) {
hab_mode = TRUE; hab_mode = TRUE;
fprintf(stderr, "HAB mode is ON\n");
}
// FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r"); // FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r");
FILE * rpitx_stop = popen("sudo systemctl restart rpitx", "r"); FILE * rpitx_stop = popen("sudo systemctl restart rpitx", "r");

Loading…
Cancel
Save

Powered by TurnKey Linux.