kopia lustrzana https://github.com/Hamlib/Hamlib
Fix misunderstanding of netrigctl_transaction() return value
netrigctl_transaction() returns either an error code (-ve int), RIG_OK, or the number of characters read from the protocol stream. +ve return values indicate successful parsing of stream data, not an error.pull/128/head
rodzic
8028663ef9
commit
c0b375c20b
|
@ -191,7 +191,7 @@ static int netrigctl_open(RIG *rig)
|
||||||
{
|
{
|
||||||
if (buf[0]) { sscanf(buf, "CHKVFO %d", &priv->rigctld_vfo_mode); }
|
if (buf[0]) { sscanf(buf, "CHKVFO %d", &priv->rigctld_vfo_mode); }
|
||||||
}
|
}
|
||||||
else
|
else if (ret < 0)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_WARN, "%s: chk_vfo error: %s\n", __FUNCTION__,
|
rig_debug(RIG_DEBUG_WARN, "%s: chk_vfo error: %s\n", __FUNCTION__,
|
||||||
rigerror(ret));
|
rigerror(ret));
|
||||||
|
|
Ładowanie…
Reference in New Issue