From 94f2415048c3f2c408aaf0da0dc3eccad5e73f2e Mon Sep 17 00:00:00 2001 From: "Alessandro Zummo, IZ1PRB" Date: Thu, 3 Dec 2009 20:36:24 +0000 Subject: [PATCH] Try to compensate for leftover characters git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2776 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- pcr/pcr.c | 3 +++ pcr/pcr.h | 2 +- pcr/pcr100.c | 2 +- pcr/pcr1000.c | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pcr/pcr.c b/pcr/pcr.c index f876fb8a3..9be5fb965 100644 --- a/pcr/pcr.c +++ b/pcr/pcr.c @@ -301,6 +301,9 @@ pcr_transaction(RIG * rig, const char *cmd) return -RIG_EPROTO; } + /* flush any leftover */ + serial_flush(&rs->rigport); + rig_debug(RIG_DEBUG_TRACE, "%s: got %c%c%c%c\n", __func__, buf[0], buf[1], buf[2], buf[3]); diff --git a/pcr/pcr.h b/pcr/pcr.h index 7788becb8..b311fa466 100644 --- a/pcr/pcr.h +++ b/pcr/pcr.h @@ -30,7 +30,7 @@ #define TOK_EL_ANL TOKEN_BACKEND(1) -#define BACKEND_VER "0.6" +#define BACKEND_VER "0.7" #define PCR_MAX_CMD_LEN 32 diff --git a/pcr/pcr100.c b/pcr/pcr100.c index 9394a6fde..c135abb94 100644 --- a/pcr/pcr100.c +++ b/pcr/pcr100.c @@ -62,7 +62,7 @@ const struct rig_caps pcr100_caps = { .dcd_type = RIG_DCD_RIG, .port_type = RIG_PORT_SERIAL, - .serial_rate_min = 300, + .serial_rate_min = 9600, /* slower speeds gave troubles */ .serial_rate_max = 38400, .serial_data_bits = 8, .serial_stop_bits = 1, diff --git a/pcr/pcr1000.c b/pcr/pcr1000.c index d19e0c704..118cf5831 100644 --- a/pcr/pcr1000.c +++ b/pcr/pcr1000.c @@ -57,7 +57,7 @@ const struct rig_caps pcr1000_caps = { .dcd_type = RIG_DCD_RIG, .port_type = RIG_PORT_SERIAL, - .serial_rate_min = 300, + .serial_rate_min = 9600, /* slower speeds gave troubles */ .serial_rate_max = 38400, .serial_data_bits = 8, .serial_stop_bits = 1,