Fix no-autopower and echo off for Icom

https://github.com/Hamlib/Hamlib/issues/885
This commit is contained in:
Mike Black W9MDB 2021-12-12 23:42:00 -06:00
parent e257116689
commit 32ce1bae50
2 changed files with 5 additions and 2 deletions

View File

@ -943,7 +943,10 @@ icom_rig_open(RIG *rig)
retry_open:
retval_echo = icom_get_usb_echo_off(rig);
if (retval_echo == 0 || retval_echo == 1) // then we know our echo status
if (retval_echo == 0 || retval_echo == 1) { retval = RIG_OK; }
else { retval = retval_echo; }
if (retval == RIG_OK) // then we know our echo status
{
rig->state.current_vfo = icom_current_vfo(rig);
// some rigs like the IC7100 still echo when in standby

View File

@ -30,7 +30,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20211212"
#define BACKEND_VER "20211213"
#define ICOM_IS_SECONDARY_VFO(vfo) ((vfo) & (RIG_VFO_B | RIG_VFO_SUB | RIG_VFO_SUB_B | RIG_VFO_MAIN_B))
#define ICOM_GET_VFO_NUMBER(vfo) (ICOM_IS_SECONDARY_VFO(vfo) ? 0x01 : 0x00)