kopia lustrzana https://github.com/Hamlib/Hamlib
Add SCREENSAVER off to rig_open
rodzic
821e046e77
commit
414b557b71
|
@ -527,6 +527,7 @@ int HAMLIB_API rig_open(RIG *rig)
|
||||||
const struct rig_caps *caps;
|
const struct rig_caps *caps;
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
int status = RIG_OK;
|
int status = RIG_OK;
|
||||||
|
value_t parm_value;
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
|
@ -822,6 +823,11 @@ int HAMLIB_API rig_open(RIG *rig)
|
||||||
rs->tx_vfo = rs->current_vfo;
|
rs->tx_vfo = rs->current_vfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// try to turn off the screensaver if possible
|
||||||
|
// don't care about the return here...it's just a nice-to-have
|
||||||
|
parm_value.i = 0;
|
||||||
|
rig_set_parm(rig, RIG_PARM_SCREENSAVER, parm_value);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Ładowanie…
Reference in New Issue