From 0e599469589b793a53722beaa3fbf720f842e8ab Mon Sep 17 00:00:00 2001 From: Michael Black Date: Fri, 10 Jan 2020 16:27:03 -0600 Subject: [PATCH] Make rig2icom_mode handle PKT modes --- icom/frame.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/icom/frame.c b/icom/frame.c index ca85a5d17..11a9978be 100644 --- a/icom/frame.c +++ b/icom/frame.c @@ -389,8 +389,12 @@ int rig2icom_mode(RIG *rig, rmode_t mode, pbwidth_t width, case RIG_MODE_USB: icmode = S_USB; break; + case RIG_MODE_PKTUSB: icmode = S_USB; break; + case RIG_MODE_LSB: icmode = S_LSB; break; + case RIG_MODE_PKTLSB: icmode = S_LSB; break; + case RIG_MODE_RTTY: icmode = S_RTTY; break; case RIG_MODE_RTTYR: icmode = S_RTTYR; break; @@ -470,9 +474,6 @@ void icom2rig_mode(RIG *rig, unsigned char md, int pd, rmode_t *mode, { *width = RIG_PASSBAND_NORMAL; - if (md == RIG_MODE_PKTUSB) { md = RIG_MODE_USB; } - else if (md == RIG_MODE_PKTLSB) { md = RIG_MODE_LSB; } - switch (md) { case S_AM: if (rig->caps->rig_model == RIG_MODEL_ICR30 && pd == 0x02)