Update main.c add cw0.txt to cw6.txt

beta-cc-hi
Alan Johnston 2 years ago committed by GitHub
parent 98b6136155
commit f9f142dad3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1163,17 +1163,21 @@ void get_tlm(void) {
strcat(str, header_str4); strcat(str, header_str4);
strcat(str, call); strcat(str, call);
sprintf(tlm_str, "%s' > cw0.txt", &str);
FILE * cw_file = popen(tlm_str, "r");
pclose(cw_file);
} }
// } // }
printf("Str: %s \n", str); printf("Str: %s \n", str);
if (mode == CW) { if (mode == CW) {
int channel; int channel;
for (channel = 1; channel < 7; channel++) { for (channel = 1; channel < 7; channel++) {
sprintf(tlm_str, "%d%d%d %d%d%d %d%d%d %d%d%d ", sprintf(tlm_str, "echo '%d%d%d %d%d%d %d%d%d %d%d%d' > cw%1d.txt",
channel, upper_digit(tlm[channel][1]), lower_digit(tlm[channel][1]), channel, upper_digit(tlm[channel][1]), lower_digit(tlm[channel][1]),
channel, upper_digit(tlm[channel][2]), lower_digit(tlm[channel][2]), channel, upper_digit(tlm[channel][2]), lower_digit(tlm[channel][2]),
channel, upper_digit(tlm[channel][3]), lower_digit(tlm[channel][3]), channel, upper_digit(tlm[channel][3]), lower_digit(tlm[channel][3]),
channel, upper_digit(tlm[channel][4]), lower_digit(tlm[channel][4])); channel, upper_digit(tlm[channel][4]), lower_digit(tlm[channel][4]), channel);
// printf("%s",tlm_str); // printf("%s",tlm_str);
//#ifdef HAB //#ifdef HAB
@ -1182,6 +1186,9 @@ void get_tlm(void) {
// if ((!hab_mode) || ((hab_mode) && (mode != AFSK))) // if ((!hab_mode) || ((hab_mode) && (mode != AFSK)))
strcat(str, tlm_str); strcat(str, tlm_str);
FILE * cw_file = popen(tlm_str, "r");
pclose(cw_file);
} }
} else { // APRS } else { // APRS
//#ifdef HAB //#ifdef HAB

Loading…
Cancel
Save

Powered by TurnKey Linux.