From ee914bcebf4f15e9da9a5a2152545eed2b44ca92 Mon Sep 17 00:00:00 2001 From: Tristan Mills Date: Sat, 3 Jul 2004 15:01:55 +0000 Subject: [PATCH] Fixed ar3030_get_mode() Removed attemped to set WFM mode (non existent on the radio) and added in setting of AMS mode in ar3030_set_mode() git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1767 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- aor/ar3030.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aor/ar3030.c b/aor/ar3030.c index 8c5b94dd2..9b1c7c99a 100644 --- a/aor/ar3030.c +++ b/aor/ar3030.c @@ -2,7 +2,7 @@ * Hamlib AOR backend - AR3030 description * Copyright (c) 2000-2004 by Stephane Fillod * - * $Id: ar3030.c,v 1.1 2004-06-14 21:10:11 fillods Exp $ + * $Id: ar3030.c,v 1.2 2004-07-03 15:01:55 t_mills Exp $ * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as @@ -358,8 +358,8 @@ int ar3030_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) case RIG_MODE_CW: aormode = 'C'; break; case RIG_MODE_USB: aormode = 'U'; break; case RIG_MODE_LSB: aormode = 'L'; break; - case RIG_MODE_WFM: aormode = 'W'; break; - case RIG_MODE_FM: aormode = 'N'; break; + case RIG_MODE_FM: aormode = 'N'; break; + case RIG_MODE_AMS: aormode = 'S'; break; /*case RIG_MODE_FAX: aormode = 'X'; break;*/ default: rig_debug(RIG_DEBUG_ERR,"%s: unsupported mode %d\n", @@ -394,7 +394,7 @@ int ar3030_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) priv->curr_vfo = RIG_VFO_A; - switch (buf[19]) { + switch (buf[25]) { case 'A': *mode = RIG_MODE_AM; break; case 'L': *mode = RIG_MODE_LSB; break; case 'U': *mode = RIG_MODE_USB; break; @@ -404,7 +404,7 @@ int ar3030_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) /*case 'X': *mode = RIG_MODE_FAX; break;*/ default: rig_debug(RIG_DEBUG_ERR,"%s: unsupported mode '%c'\n", - __FUNCTION__,buf[19]); + __FUNCTION__,buf[25]); return -RIG_EPROTO; }