From 557282388256e11dcc0a13af388df72148af716a Mon Sep 17 00:00:00 2001 From: Michael Black Date: Wed, 8 Jan 2020 14:38:34 -0600 Subject: [PATCH] Change width to add 1 for icom rigs that need datamode filter width --- icom/icom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icom/icom.c b/icom/icom.c index 4e095e1e9..6fdba035e 100644 --- a/icom/icom.c +++ b/icom/icom.c @@ -1205,7 +1205,8 @@ int icom_set_mode_with_data(RIG *rig, vfo_t vfo, rmode_t mode, rmode_t mode2; // not used as it will map to USB/LSB pbwidth_t width2; icom2rig_mode(rig, mode, width, &mode2, &width2); - datamode[1] = datamode[1] ? width2 : 0; + // since width2 is 0-2 for rigs that need this here we have to make it 1-3 + datamode[1] = datamode[1] ? width2+1 : 0; retval = icom_transaction(rig, C_CTL_MEM, dm_sub_cmd, datamode, 2, ackbuf, &ack_len);