Fix IC-905 set_freq -- get_freq should be working

https://github.com/Hamlib/Hamlib/issues/1375
pull/1389/head
Mike Black W9MDB 2023-08-27 12:08:00 -05:00
rodzic 8ede3518f1
commit 875214eb54
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -1343,7 +1343,12 @@ int icom_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
freq_len = priv->civ_731_mode ? 4 : 5;
if (RIG_IS_IC905) { freq /= 10; freq_len = 6; }
if (RIG_IS_IC905)
{
// 10Hz resolution and > 5.85MHz is 6 bytes
freq /= 10;
if (freq > 5.85e6) { freq_len = 6; }
}
/*
* to_bcd requires nibble len