From bbe4c6a3164dc64ae3e214aba2d0f4b60260aa67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Thu, 10 Dec 2009 21:17:25 +0000 Subject: [PATCH] fix MEM scan on IC receivers, thanks to John Ronan EI7IG git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2781 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- icom/icom.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/icom/icom.c b/icom/icom.c index 185c91290..d9fe1bc77 100644 --- a/icom/icom.c +++ b/icom/icom.c @@ -2715,7 +2715,14 @@ int icom_scan(RIG *rig, vfo_t vfo, scan_t scan, int ch) retval = icom_set_vfo(rig, RIG_VFO_MEM); if (retval != RIG_OK) return retval; - scan_sc = S_SCAN_START; + /* Looks like all the IC-R* have this command, + * but some old models don't have it. + * Should be put in icom_priv_caps ? + */ + if (rig->caps->rig_type == RIG_TYPE_RECEIVER) + scan_sc = S_SCAN_MEM2; + else + scan_sc = S_SCAN_START; break; case RIG_SCAN_SLCT: retval = icom_set_vfo(rig, RIG_VFO_MEM);