added printfs

pull/101/head
alanbjohnston 5 years ago committed by GitHub
parent a796e7f441
commit 7aa5d25c81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -960,6 +960,7 @@ void get_tlm(void) {
strcpy(str, header_str); strcpy(str, header_str);
} else { } else {
strcpy(str, header_str3); strcpy(str, header_str3);
printf("Str: %s \n", str);
if (mode != CW) { if (mode != CW) {
strcat(str, call); strcat(str, call);
strcat(str, header_str2); strcat(str, header_str2);
@ -978,6 +979,7 @@ void get_tlm(void) {
strcat(str, header_str2b); strcat(str, header_str2b);
} else { } else {
strcat(str, header_str4); strcat(str, header_str4);
printf("Str: %s \n", str);
} }
} }
@ -1000,8 +1002,10 @@ void get_tlm(void) {
// strcpy(cw_str2, cw_header2); // strcpy(cw_str2, cw_header2);
//printf("Before 1st strcpy\n"); //printf("Before 1st strcpy\n");
strcat(cw_str2, str); strcat(cw_str2, str);
printf("Str: %s \n", str);
//printf("Before 1st strcpy\n"); //printf("Before 1st strcpy\n");
strcat(cw_str2, cw_footer2); strcat(cw_str2, cw_footer2);
printf("Str: %s \n", str);
//printf("Before 1st strcpy\n"); //printf("Before 1st strcpy\n");
// read payload sensor if available // read payload sensor if available
@ -1084,7 +1088,9 @@ void get_tlm(void) {
// #endif // #endif
if (mode == CW) { if (mode == CW) {
fprintf(stderr, "CW string to execute: %s\n", cw_str2); fprintf(stderr, "CW string to execute: %s\n", cw_str2);
system(cw_str2); // system(cw_str2);
FILE * cw_file = popen(cw_str2, "r");
pclose(cw_file);
// digitalWrite(txLed, txLedOn); // digitalWrite(txLed, txLedOn);
// #ifdef DEBUG_LOGGING // #ifdef DEBUG_LOGGING
// printf("Tx LED On 4\n"); // printf("Tx LED On 4\n");

Loading…
Cancel
Save

Powered by TurnKey Linux.