From d32c2cdc04a5c6837f5393973eb42e21fff80820 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 19 Aug 2026 09:25:35 -0400 Subject: [PATCH] Update main.c remove is_safe_input test --- main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 70cc7184..b0444ef8 100644 --- a/main.c +++ b/main.c @@ -1548,10 +1548,10 @@ void get_tlm(void) { printf("\n\nTelemetry string is %s \n\n", str); if (transmit) { - if (is_safe_input(str)) - fprintf(stderr, "String is safe"); - else - fprintf(stderr, "String is not safe"); +// if (is_safe_input(str)) +// fprintf(stderr, "String is safe"); +// else +// fprintf(stderr, "String is not safe"); FILE * file2 = popen(str, "r"); pclose(file2); @@ -1571,6 +1571,7 @@ void get_tlm(void) { return; } +/* int is_safe_input(const char *s) { for (; *s; s++) { if (!isdigit((unsigned char)*s) @@ -1581,6 +1582,7 @@ int is_safe_input(const char *s) { } return 1; } +*/ // generates telemetry which is decoded by AMSAT's FoxTelem: https://www.amsat.org/foxtelem-software-for-windows-mac-linux/ // for more info about how we use FoxTelem see https://www.g0kla.com/foxtelem/amsat_telemetry_designers_handbook.pdf