Send reponses for commands

This commit is contained in:
Ed Gonzalez 2015-01-16 14:42:10 -06:00
parent da0baf098f
commit 8bdab04dd4

View file

@ -186,8 +186,13 @@ void status_processor(char* string)
sscanf(string, "%i", &val); sscanf(string, "%i", &val);
char* cmd = strtok_r(string, "|", &save); char* cmd = strtok_r(string, "|", &save);
cmd = strtok_r(NULL, "", &save); cmd = strtok_r(NULL, "", &save);
#ifdef DEBUG
output("\033[32mExecuting command from SmartSDR: \033[m%s\n",cmd); output("\033[32mExecuting command from SmartSDR: \033[m%s\n",cmd);
process_command(cmd); #endif
uint32 ret = process_command(cmd);
char response[1024];
sprintf(response, "waveform response %d|%d", val, ret);
tc_sendSmartSDRcommand(response, FALSE, NULL );
break; break;
} }
case 'S': // status case 'S': // status