kopia lustrzana https://github.com/Hamlib/Hamlib
Update thd74.c
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
rodzic
3385a5f37b
commit
014daefb5f
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue