kopia lustrzana https://github.com/Hamlib/Hamlib
Fix compile error on last patch
rodzic
67d09427d3
commit
4f3ff0fc08
|
@ -292,6 +292,7 @@ int HAMLIB_API amp_open(AMP *amp)
|
||||||
const struct amp_caps *caps;
|
const struct amp_caps *caps;
|
||||||
struct amp_state *rs;
|
struct amp_state *rs;
|
||||||
int status;
|
int status;
|
||||||
|
int net1,net2,net3,net4,port;
|
||||||
|
|
||||||
amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
|
@ -311,10 +312,10 @@ int HAMLIB_API amp_open(AMP *amp)
|
||||||
rs->ampport.fd = -1;
|
rs->ampport.fd = -1;
|
||||||
|
|
||||||
// determine if we have a network address
|
// determine if we have a network address
|
||||||
if (sscanf(rs->rotport.pathname,"%d.%d.%d.%d:%d", &net1, &net2, &net3, &net4, &port)==5)
|
if (sscanf(rs->ampport.pathname,"%d.%d.%d.%d:%d", &net1, &net2, &net3, &net4, &port)==5)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_TRACE,"%s: using network address %s\n", __func__, rs->rotport.pathname);
|
rig_debug(RIG_DEBUG_TRACE,"%s: using network address %s\n", __func__, rs->ampport.pathname);
|
||||||
rs->rotport.type.rig = RIG_PORT_NETWORK;
|
rs->ampport.type.rig = RIG_PORT_NETWORK;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (rs->ampport.type.rig)
|
switch (rs->ampport.type.rig)
|
||||||
|
|
|
@ -550,6 +550,7 @@ int HAMLIB_API rig_open(RIG *rig)
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
int status = RIG_OK;
|
int status = RIG_OK;
|
||||||
value_t parm_value;
|
value_t parm_value;
|
||||||
|
int net1,net2,net3,net4,port;
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
|
@ -569,10 +570,10 @@ int HAMLIB_API rig_open(RIG *rig)
|
||||||
rs->rigport.fd = -1;
|
rs->rigport.fd = -1;
|
||||||
|
|
||||||
// determine if we have a network address
|
// determine if we have a network address
|
||||||
if (sscanf(rs->rotport.pathname,"%d.%d.%d.%d:%d", &net1, &net2, &net3, &net4, &port)==5)
|
if (sscanf(rs->rigport.pathname,"%d.%d.%d.%d:%d", &net1, &net2, &net3, &net4, &port)==5)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_TRACE,"%s: using network address %s\n", __func__, rs->rotport.pathname);
|
rig_debug(RIG_DEBUG_TRACE,"%s: using network address %s\n", __func__, rs->rigport.pathname);
|
||||||
rs->rotport.type.rig = RIG_PORT_NETWORK;
|
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