diff --git a/main.c b/main.c index a6536dec..9958c06f 100644 --- a/main.c +++ b/main.c @@ -1270,11 +1270,14 @@ void get_tlm(void) { strcat(str, cw_footer3); // printf("Str: %s \n", str); // fflush(stdout); - printf("CW string to execute: %s\n", cwready); + printf("CW string to execute: %s\n", str); fflush(stdout); - FILE * cw_file = popen(cwready, "r"); - pclose(cw_file); + FILE * cw_file = popen(str, "r"); + pclose(cw_file); + +// FILE * cw_file = popen(cwready, "r"); +// pclose(cw_file); while ((cw_file = fopen("/home/pi/CubeSatSim/cwready", "r")) != NULL) { // wait for rpitx to be done fclose(cw_file);