kopia lustrzana https://github.com/Hamlib/Hamlib
Another attempt to get icom powerstat working
rodzic
9882448494
commit
dd1184c9e5
|
@ -594,7 +594,8 @@ int icom_rig_open(RIG *rig)
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s get_freq retval=%s\n", __func__,
|
rig_debug(RIG_DEBUG_VERBOSE, "%s get_freq retval=%s\n", __func__,
|
||||||
rigerror(retval));
|
rigerror(retval));
|
||||||
|
|
||||||
if (retval == RIG_ETIMEOUT || retval == RIG_ERJCTED || retval == RIG_BUSERROR) {
|
// if (retval == RIG_ETIMEOUT || retval == RIG_ERJCTED || retval == RIG_BUSERROR) {
|
||||||
|
if (retval != RIG_OK) { // maybe we need powerr on?
|
||||||
retval = rig_set_powerstat(rig, 1);
|
retval = rig_set_powerstat(rig, 1);
|
||||||
if (retval != RIG_OK) { rig_debug(RIG_DEBUG_WARN, "%s: unexpected retval here %s\n", __func__, rigerror(retval)); }
|
if (retval != RIG_OK) { rig_debug(RIG_DEBUG_WARN, "%s: unexpected retval here %s\n", __func__, rigerror(retval)); }
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue