fixes set_ts (the byte passed in thd74_set_freq_item() was wrong, it's 27 for normal mode and 35 for fine mode). Also if a step lower than 5000 is entered the radio is switched into fine mode (only works on VFO B)
pull/928/head
giordyb 2022-01-16 19:19:46 +01:00 zatwierdzone przez GitHub
rodzic 3385a5f37b
commit 014daefb5f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 13 dodań i 1 usunięć

Wyświetl plik

@ -638,11 +638,23 @@ static int thd74_set_ts(RIG *rig, vfo_t vfo, shortfreq_t ts)
rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__);
for (tsinx = 0; tsinx < 4; tsinx++)
{
if (thd74tuningstep_fine[tsinx] >= ts)
{
thd74_set_freq_item(rig, vfo, 33, 1); // Turn fine mode on
thd74_set_freq_item(rig, vfo, 35, tsinx);
return RIG_OK;
}
}
for (tsinx = 0; tsinx < 10; tsinx++)
{
if (thd74tuningstep[tsinx] >= ts)
{
thd74_set_freq_item(rig, vfo, 16, tsinx);
thd74_set_freq_item(rig, vfo, 33, 0); //Turn fine mode off
thd74_set_freq_item(rig, vfo, 27, tsinx);
return RIG_OK;
}
}