From d3aff374539559aa2a01e83a3369395e465eaeea Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 2 Mar 2024 13:31:34 -0500 Subject: [PATCH] Update main.c --- main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 34653fb8..a6536dec 100644 --- a/main.c +++ b/main.c @@ -1163,7 +1163,8 @@ void get_tlm(void) { strcat(str, header_str4); strcat(str, call); - sprintf(tlm_str, "%s' > cw0.txt", &str); + sprintf(tlm_str, "%s' > cw0.txt", &str); + printf("CW string to execute: %s\n", &tlm_str); FILE * cw_file = popen(tlm_str, "r"); pclose(cw_file); @@ -1184,8 +1185,10 @@ void get_tlm(void) { // if (mode != AFSK) //#endif // if ((!hab_mode) || ((hab_mode) && (mode != AFSK))) - strcat(str, tlm_str); - + strcat(str, tlm_str); + + printf("CW string to execute: %s\n", &tlm_str); + FILE * cw_file = popen(tlm_str, "r"); pclose(cw_file);