Skip to content

Commit

Permalink
Fix IC-905 set_freq -- get_freq should be working
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Aug 27, 2023
1 parent 8ede351 commit 875214e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rigs/icom/icom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 875214e

Please sign in to comment.