kopia lustrzana https://github.com/Hamlib/Hamlib
Fix IC-905 frequency -- needed to be 10Hz units
rodzic
fa31975650
commit
f14c241f43
|
@ -1341,7 +1341,7 @@ int icom_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
|
||||
freq_len = priv->civ_731_mode ? 4 : 5;
|
||||
|
||||
if (rig->caps->rig_model == RIG_MODEL_IC905) { freq_len = 6; }
|
||||
if (rig->caps->rig_model == RIG_MODEL_IC905) { freq/=10; freq_len = 6; }
|
||||
|
||||
/*
|
||||
* to_bcd requires nibble len
|
||||
|
@ -1762,6 +1762,8 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
|||
|
||||
if (freq_len == 3) { *freq *= 10000; } // 3-byte freq for ID5100 is in 10000Hz units so convert to Hz
|
||||
|
||||
if (rig->caps->rig_model == RIG_MODEL_IC905) { *freq*=10; }
|
||||
|
||||
if (vfo == RIG_VFO_MEM && civ_731_mode) { priv->civ_731_mode = 1; }
|
||||
|
||||
switch (vfo)
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#define BACKEND_VER "20230609"
|
||||
#define BACKEND_VER "20230616"
|
||||
|
||||
#define ICOM_IS_ID31 rig_is_model(rig, RIG_MODEL_ID31)
|
||||
#define ICOM_IS_ID51 rig_is_model(rig, RIG_MODEL_ID51)
|
||||
|
|
Ładowanie…
Reference in New Issue