Fix icom.c frequency offset when the 0x25 is attempted and fails

https://github.com/Hamlib/Hamlib/issues/629
pull/649/head
Michael Black W9MDB 2021-03-26 23:09:36 -05:00
rodzic 8e89aad2ea
commit c831e32db1
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1278,7 +1278,7 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
{
priv->x25cmdfails = 1;
rig_debug(RIG_DEBUG_WARN,
"%s: rig does not support 0x25 CI-V cmd...vfo swapping will occur\n", __func__);
"%s: rig does not support 0x25 CI-V cmd\n", __func__);
}
freq_len--; // 0x25 cmd is 1 byte longer than 0x03 cmd
@ -1287,6 +1287,7 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
if (priv->x25cmdfails) // then we're doing this the hard way....swap+read
{
freqbuf_offset = 1;
retval = set_vfo_curr(rig, vfo, rig->state.current_vfo);
if (retval != RIG_OK)