kopia lustrzana https://github.com/Hamlib/Hamlib
Keep TS-950 minimum power level to 5W -- based on testing.
< 5W setting either ends up 5W or gives an error for PC000 and PC001 https://github.com/Hamlib/Hamlib/issues/399pull/412/head
rodzic
0afe35ecc6
commit
7f293e23df
|
@ -2259,6 +2259,7 @@ static int kenwood_get_power_minmax(RIG *rig, int *power_now, int *power_min,
|
||||||
int n;
|
int n;
|
||||||
struct rig_state *rs = &rig->state;
|
struct rig_state *rs = &rig->state;
|
||||||
|
|
||||||
|
if (RIG_IS_TS950S) cmd = "PC;PC005;PC;PC255;PC;PC005;";
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__);
|
rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__);
|
||||||
retval = write_block(&rs->rigport, cmd, strlen(cmd));
|
retval = write_block(&rs->rigport, cmd, strlen(cmd));
|
||||||
|
|
||||||
|
@ -2283,6 +2284,7 @@ static int kenwood_get_power_minmax(RIG *rig, int *power_now, int *power_min,
|
||||||
levelbuf);
|
levelbuf);
|
||||||
return -RIG_EPROTO;
|
return -RIG_EPROTO;
|
||||||
}
|
}
|
||||||
|
if (RIG_IS_TS950S) *power_min = 5;
|
||||||
|
|
||||||
if (restore)
|
if (restore)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue