Update main.c fix c2cstatus print

beta-ft2
Alan Johnston 1 year ago committed by GitHub
parent 6992b96fab
commit bb3a9da6d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -89,10 +89,12 @@ int main(int argc, char * argv[]) {
if (command_file == NULL) { if (command_file == NULL) {
fprintf(stderr,"Command and control Carrier (squelch) is ON\n"); fprintf(stderr,"Command and control Carrier (squelch) is ON\n");
c2cStatus = 1; c2cStatus = 1;
} else } else {
fprintf(stderr,"Command and control DTMF or APRS is ON\n"); fprintf(stderr,"Command and control DTMF or APRS is ON\n");
c2cStatus = 2; c2cStatus = 2;
}
} }
printf("c2cStatus: %d", c2cStatus);
char resbuffer[1000]; char resbuffer[1000];
// const char testStr[] = "cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed 's/^1000//' | grep '9000'"; // const char testStr[] = "cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed 's/^1000//' | grep '9000'";
const char testStr[] = "cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed 's/^1000//'"; const char testStr[] = "cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed 's/^1000//'";

Loading…
Cancel
Save

Powered by TurnKey Linux.