From 8b41f25aa84dcba584cf178fc333aad4ea65d24e Mon Sep 17 00:00:00 2001 From: Stephane Fillod Date: Mon, 11 Jun 2012 23:30:44 +0200 Subject: [PATCH] GS-232A: Fix wrong end of line in commands Similar to c78952310a2e67da975c77fb1e79e43278c65022, and as described in page 15 of the user manual for the Yaesu GS-232A, remove the extra line feed when sending commands. --- gs232a/gs232a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gs232a/gs232a.c b/gs232a/gs232a.c index 50578f2ea..c791db7d3 100644 --- a/gs232a/gs232a.c +++ b/gs232a/gs232a.c @@ -1,6 +1,6 @@ /* * Hamlib Rotator backend - GS-232A - * Copyright (c) 2001-2010 by Stephane Fillod + * Copyright (c) 2001-2012 by Stephane Fillod * * * This library is free software; you can redistribute it and/or @@ -36,8 +36,8 @@ #include "gs232a.h" -#define EOM "\r\n" -#define REPLY_EOM "\r" +#define EOM "\r" +#define REPLY_EOM "\r\n" #define BUFSZ 64 @@ -57,7 +57,7 @@ * RIG_REJECTED - if a negative acknowledge was received or command not * recognized by rig. */ -int +static int gs232a_transaction (ROT *rot, const char *cmdstr, char *data, size_t data_len) { @@ -240,7 +240,7 @@ const struct rot_caps gs232a_rot_caps = { .rot_model = ROT_MODEL_GS232A, .model_name = "GS-232A", .mfg_name = "Yaesu", - .version = "0.2", + .version = "0.3", .copyright = "LGPL", .status = RIG_STATUS_BETA, .rot_type = ROT_TYPE_OTHER,