From 50f993279ff528187a54b69fd8a1487c3faffafb Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 19 Aug 2026 09:16:37 -0400 Subject: [PATCH] Update main.c move is_safe --- main.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 39f1509f..05db0372 100644 --- a/main.c +++ b/main.c @@ -1547,12 +1547,16 @@ void get_tlm(void) { printf("\n\nTelemetry string is %s \n\n", str); - if (transmit && is_safe_input(str)) { + if (transmit) { + if (is_safe_input(str)) + printf("String is safe") + else + printf("String is not safe") FILE * file2 = popen(str, "r"); pclose(file2); - sleep(2); - digitalWrite(txLed, txLedOff); + sleep(2); + digitalWrite(txLed, txLedOff); } else { fprintf(stderr, "\nNo CubeSatSim Band Pass Filter detected. No transmissions after the CW ID.\n");