kopia lustrzana https://github.com/Hamlib/Hamlib
Only do close functions when comm_state is true
https://github.com/Hamlib/Hamlib/issues/1282pull/1289/head^2
rodzic
5f55b0ea48
commit
bdecc7f73e
|
@ -689,7 +689,7 @@ int newcat_close(RIG *rig)
|
||||||
|
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
if (!no_restore_ai && priv->trn_state >= 0)
|
if (!no_restore_ai && priv->trn_state >= 0 && rig_s->comm_state)
|
||||||
{
|
{
|
||||||
/* restore AI state */
|
/* restore AI state */
|
||||||
newcat_set_trn(rig, priv->trn_state); /* ignore status in
|
newcat_set_trn(rig, priv->trn_state); /* ignore status in
|
||||||
|
@ -697,7 +697,7 @@ int newcat_close(RIG *rig)
|
||||||
supported */
|
supported */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (priv->poweron != 0 && rig_s->auto_power_off)
|
if (priv->poweron != 0 && rig_s->auto_power_off && rig_s->comm_state)
|
||||||
{
|
{
|
||||||
rig_set_powerstat(rig, 0);
|
rig_set_powerstat(rig, 0);
|
||||||
priv->poweron = 0;
|
priv->poweron = 0;
|
||||||
|
|
Ładowanie…
Reference in New Issue