From bdb17d76257068cf7d14aa274a2dd06a8d3cdae4 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 20 Nov 2023 22:35:05 -0500 Subject: [PATCH] Update main.c print sim mode --- main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 1c2edd48..e9a167b9 100644 --- a/main.c +++ b/main.c @@ -88,12 +88,14 @@ int main(int argc, char * argv[]) { newGpsTime = millis(); } - if (strcmp(sim_yes, "yes") == 0) + if (strcmp(sim_yes, "yes") == 0) { sim_mode = TRUE; - - if (strcmp(hab_yes, "yes") == 0) + fprintf(stderr, "Sim mode is ON\n"); + } + if (strcmp(hab_yes, "yes") == 0) { 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 restart rpitx", "r");