|
|
|
@ -882,6 +882,8 @@ int mainserver(int fd) {
|
|
|
|
|
fsync(fd);
|
|
|
|
|
if (commanalyzer_get_spectrum_analyzer_trace(commanalyzerType, commanalyzer_board_device) == 0) {
|
|
|
|
|
bytestosend = commanalyzerTraceLength(commanalyzerType)*sizeof(double);
|
|
|
|
|
int16_t numbytes = bytestosend;
|
|
|
|
|
quiet_write(fd, &numbytes, 2);
|
|
|
|
|
k=0;
|
|
|
|
|
while (bytestosend > 0) {
|
|
|
|
|
return_status = write(fd, commanalyzer_raw_trace_data+k, 1);
|
|
|
|
@ -1055,6 +1057,16 @@ int mainserver(int fd) {
|
|
|
|
|
quiet_write(fd, "NCK\r", strlen("NCK\r"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (readbuf[0] == 62) { // Want the number of vertical divisions available
|
|
|
|
|
int16_t divisions = commanalyzer_get_spectrum_analyzer_number_of_vertical_divisions(commanalyzerType, commanalyzer_board_device);
|
|
|
|
|
if (divisions >= 0) {
|
|
|
|
|
quiet_write(fd, &divisions, 2);
|
|
|
|
|
quiet_write(fd, "ACK\r", strlen("ACK\r"));
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
quiet_write(fd, "NCK\r", strlen("NCK\r"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 2: // Open the serial port
|
|
|
|
|