DX-SR8 echos back the command sent to it. Need to read past that to get to the next line containing the value

pull/312/head
Weston Bustraan 2020-06-17 19:59:53 -04:00
rodzic 5a65ae4692
commit 7520a3a702
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -260,6 +260,18 @@ int dxsr8_transaction(RIG *rig,
return retval;
}
/*
* Transceiver sends an echo of cmd followed by a CR/LF
* TODO: check whether cmd and echobuf match (optional)
*/
retval = read_string(&rs->rigport, replybuf, BUFSZ, LF, strlen(LF));
if (retval < 0)
{
return retval;
}
retval = read_string(&rs->rigport, replybuf, BUFSZ, LF, strlen(LF));
if (retval < 0)