Improve logic slightly in rig.c

pull/234/head
Michael Black 2020-04-25 11:18:45 -05:00
rodzic ee0b3c6eb7
commit 2d0c157b09
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -581,7 +581,7 @@ int HAMLIB_API rig_open(RIG *rig)
rs->rigport.pathname);
rs->rigport.type.rig = RIG_PORT_NETWORK;
}
if (sscanf(rs->rigport.pathname, ":%d", &port) == 1)
else if (sscanf(rs->rigport.pathname, ":%d", &port) == 1)
{
rig_debug(RIG_DEBUG_TRACE, "%s: using network address %s\n", __func__,
rs->rigport.pathname);