From 0c2426c800b754de0aa14a89421354e39473546f Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sat, 21 Jan 2023 17:21:04 -0600 Subject: [PATCH] Add 5 second sleep during power on for IC7300 https://github.com/Hamlib/Hamlib/issues/1220 --- rigs/icom/icom.c | 5 +++++ rigs/icom/icom.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 7cc67e522..3a7001275 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -8051,6 +8051,11 @@ int icom_set_powerstat(RIG *rig, powerstat_t status) if (status == RIG_POWER_ON) // wait for wakeup only { + if (rig->caps->rig_model == RIG_MODEL_IC7300) + { + rig_debug(RIG_DEBUG_VERBOSE, "%s: waiting 5 seconds for rig to wake up\n", __func__); + sleep(5); // IC7300 is slow to start up -- may need to add more rigs + } for (i = 0; i < retry; ++i) // up to 10 attempts { freq_t freq; diff --git a/rigs/icom/icom.h b/rigs/icom/icom.h index 6629fcad3..a72ba5ed4 100644 --- a/rigs/icom/icom.h +++ b/rigs/icom/icom.h @@ -31,7 +31,7 @@ #include #endif -#define BACKEND_VER "20230118" +#define BACKEND_VER "20230121" #define ICOM_IS_ID31 rig_is_model(rig, RIG_MODEL_ID31) #define ICOM_IS_ID51 rig_is_model(rig, RIG_MODEL_ID51)