kopia lustrzana https://github.com/Hamlib/Hamlib
DX-SR8 echos back the command sent to it. Need to read past that to get to the next line containing the value
rodzic
5a65ae4692
commit
7520a3a702
|
@ -260,6 +260,18 @@ int dxsr8_transaction(RIG *rig,
|
||||||
return retval;
|
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));
|
retval = read_string(&rs->rigport, replybuf, BUFSZ, LF, strlen(LF));
|
||||||
|
|
||||||
if (retval < 0)
|
if (retval < 0)
|
||||||
|
|
Ładowanie…
Reference in New Issue