From cc529aab0cd57347a562d1cc3ca040400ed5afbf Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Wed, 28 Oct 2020 09:26:06 -0500 Subject: [PATCH] Fix newcat_band_index https://github.com/Hamlib/Hamlib/issues/424 --- rigs/yaesu/newcat.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 192ab2fec..6120a8cb7 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -394,19 +394,19 @@ static int newcat_band_index(freq_t freq) // FTDX101D has band=12=MW...what is that? int band = 11; // general - if (freq >= 1.8) { band = 0; } - else if (freq >= 3.5) { band = 1; } - else if (freq >= 5) { band = 2; } - else if (freq >= 7) { band = 3; } - else if (freq >= 10) { band = 4; } - else if (freq >= 14) { band = 5; } - else if (freq >= 18) { band = 6; } - else if (freq >= 21) { band = 7; } - else if (freq >= 24.5) { band = 8; } - else if (freq >= 28) { band = 9; } - else if (freq >= 50) { band = 10; } + if (freq >= 70) { band = 17; } // what about 11-16? - else if (freq >= 70) { band = 17; } + else if (freq >= 50) { band = 10; } + else if (freq >= 28) { band = 9; } + else if (freq >= 24.5) { band = 8; } + else if (freq >= 21) { band = 7; } + else if (freq >= 18) { band = 6; } + else if (freq >= 14) { band = 5; } + else if (freq >= 10) { band = 4; } + else if (freq >= 7) { band = 3; } + else if (freq >= 5) { band = 2; } + else if (freq >= 3.5) { band = 1; } + else if (freq >= 1.8) { band = 0; } rig_debug(RIG_DEBUG_TRACE, "%s: band=%d\n", __func__, band); return band;