From ea0a9300a27c83fd2735d790211ae3aa39089b45 Mon Sep 17 00:00:00 2001 From: Nate Bargmann Date: Fri, 27 Jan 2012 19:13:20 -0600 Subject: [PATCH] Fix incorrect swap of main and subband in IC-910 Per tracker bug report: https://sourceforge.net/tracker/?func=detail&atid=108305&aid=3480533&group_id=8305 When the actual used frequency lies in the same band like the one you want to set, the main- and subband are swaped. Definitely not the wanted behyvior. -- from ArkturusMensk --- icom/ic910.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icom/ic910.c b/icom/ic910.c index 94b297c59..b306ad4a3 100644 --- a/icom/ic910.c +++ b/icom/ic910.c @@ -169,7 +169,7 @@ static int ic910_set_freq(RIG* rig, vfo_t vfo, freq_t freq) if (retval!=RIG_OK) return retval; } - if (compareFrequencies(rig, freq, otherfreq)) + if (compareFrequencies(rig, freq, otherfreq) == 0) icom_swap_bands(rig); icom_set_vfo(rig, vfo);