diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index da2a0c0c7..464f8991f 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -3420,13 +3420,9 @@ int newcat_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) break; case RIG_LEVEL_SWR: - if (is_ft101) - { - retlvl[3]=0; - rig_debug(RIG_DEBUG_TRACE, "%s: retlvl=%s\n", __func__, retlvl); - val->f = rig_raw2val_float(atoi(retlvl), &yaesu_ftdx101d_swr_cal); - } - else if (rig->caps->swr_cal.size == 0) + // some rigs like ft101dx have 6 byte return so we just truncate + retlvl[3] = 0; + if (rig->caps->swr_cal.size == 0) { val->f = rig_raw2val_float(atoi(retlvl), &yaesu_default_swr_cal); } @@ -5321,6 +5317,7 @@ int newcat_set_rx_bandwidth(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) case RIG_MODE_RTTYR: case RIG_MODE_CW: case RIG_MODE_CWR: + if (width <= 500) switch (width) { case 1700: snprintf(width_str, sizeof(width_str), "11"); narrow = '0'; diff --git a/rigs/yaesu/newcat.h b/rigs/yaesu/newcat.h index c5e0d16ae..7922a817c 100644 --- a/rigs/yaesu/newcat.h +++ b/rigs/yaesu/newcat.h @@ -50,7 +50,7 @@ typedef char ncboolean; /* shared function version */ -#define NEWCAT_VER "20201004" +#define NEWCAT_VER "20201005" /* Hopefully large enough for future use, 128 chars plus '\0' */ #define NEWCAT_DATA_LEN 129