From 6f4c68d50dd14eb605bfaabf1b091e367306ae84 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 28 Aug 2025 10:26:09 -0400 Subject: [PATCH] Update main.c fix cw --- main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 1bcd9a33..887ab76b 100644 --- a/main.c +++ b/main.c @@ -1215,8 +1215,11 @@ void get_tlm(void) { strcat(str, header_str4); strcat(str, call); if (c2cStatus != DISABLED) { - strcat(str, header_c2c); + strcat(str, " C"); } + if (sim_mode || failureMode != FAIL_NONE) { + strcat(str, " S"); + } sprintf(tlm_str, "%s' > cw0.txt", &str); printf("CW string to execute: %s\n", &tlm_str); @@ -1259,8 +1262,8 @@ void get_tlm(void) { strcat(tlm_str,"C "); if (sim_mode || (failureMode != FAIL_NONE)) strcat(tlm_str,"S "); - - strcat(str, tlm_str); +// printf("tlm_str: %s\n", tlm_str); +// strcat(str, tlm_str); } // strcpy(sensor_payload, buffer2);