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
Bill Somerville 2019-08-31 00:38:25 +01:00
rodzic 8028663ef9
commit c0b375c20b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: D864B06D1E81618F
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -191,7 +191,7 @@ static int netrigctl_open(RIG *rig)
{
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__,
rigerror(ret));