kopia lustrzana https://github.com/Hamlib/Hamlib
Fix floating point compuation on KX3/KX2 LEVEL_RF
rodzic
01364ba1ba
commit
92dcdcd952
|
@ -2673,7 +2673,7 @@ int kenwood_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
||||||
// KX2 and KX3 have range 190 to 250
|
// KX2 and KX3 have range 190 to 250
|
||||||
if (RIG_IS_KX2 || RIG_IS_KX3)
|
if (RIG_IS_KX2 || RIG_IS_KX3)
|
||||||
{
|
{
|
||||||
val->f = (val->i - 190) / (250 - 190);
|
val->f = (val->i - 190.0) / (250.0 - 190.0);
|
||||||
}
|
}
|
||||||
// K3 is 0 to 250
|
// K3 is 0 to 250
|
||||||
else if (RIG_IS_K3 || RIG_IS_K3S)
|
else if (RIG_IS_K3 || RIG_IS_K3S)
|
||||||
|
|
Ładowanie…
Reference in New Issue