kopia lustrzana https://github.com/Hamlib/Hamlib
Allow device addresses of the form ":19000" to switch from serial to TCP
(not only aaa.bbb.ccc.ddd.port)pull/224/head
rodzic
0365450269
commit
f6e3570e37
|
@ -581,6 +581,12 @@ int HAMLIB_API rig_open(RIG *rig)
|
||||||
rs->rigport.pathname);
|
rs->rigport.pathname);
|
||||||
rs->rigport.type.rig = RIG_PORT_NETWORK;
|
rs->rigport.type.rig = RIG_PORT_NETWORK;
|
||||||
}
|
}
|
||||||
|
if (sscanf(rs->rigport.pathname, ":%d", &port) == 1)
|
||||||
|
{
|
||||||
|
rig_debug(RIG_DEBUG_TRACE, "%s: using network address %s\n", __func__,
|
||||||
|
rs->rigport.pathname);
|
||||||
|
rs->rigport.type.rig = RIG_PORT_NETWORK;
|
||||||
|
}
|
||||||
|
|
||||||
if (rs->rigport.type.rig == RIG_PORT_SERIAL)
|
if (rs->rigport.type.rig == RIG_PORT_SERIAL)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue