kopia lustrzana https://github.com/Hamlib/Hamlib
Move set_powerstat to kenwood_open and add kenwood_open to ts950.c
rodzic
dede1e5ac1
commit
2e74b4fa6b
|
@ -611,9 +611,6 @@ int kenwood_init(RIG *rig)
|
|||
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: if_len = %d\n", __func__, caps->if_len);
|
||||
|
||||
// Ensure power is on -- any reason not to do this?
|
||||
rig_set_powerstat(rig,1);
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
|
@ -636,6 +633,10 @@ int kenwood_open(RIG *rig)
|
|||
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||
|
||||
// Ensure rig is on
|
||||
rig_set_powerstat(rig,1);
|
||||
|
||||
|
||||
if (RIG_MODEL_TS590S == rig->caps->rig_model)
|
||||
{
|
||||
/* we need the firmware version for these rigs to deal with f/w defects */
|
||||
|
|
|
@ -162,6 +162,7 @@ const struct rig_caps ts950sdx_caps =
|
|||
.priv = (void *)& ts950_priv_caps,
|
||||
|
||||
.rig_init = kenwood_init,
|
||||
.rig_open = kenwood_open,
|
||||
.rig_cleanup = kenwood_cleanup,
|
||||
.set_freq = kenwood_set_freq,
|
||||
.get_freq = kenwood_get_freq,
|
||||
|
|
Ładowanie…
Reference in New Issue