[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. ea6854844cd796bf565f6
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-03 20:57:20
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via ea6854844cd796bf565f62448d8c48307e479ce7 (commit) from 1e98661ce4c5f01a8c368a61af1d88a437f6924a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit ea6854844cd796bf565f62448d8c48307e479ce7 Author: Michael Black W9MDB <mdb...@ya...> Date: Sun Jan 3 14:55:09 2021 -0600 Fix Barrett 950 set_freq https://github.com/Hamlib/Hamlib/issues/483 diff --git a/rigs/barrett/950.c b/rigs/barrett/950.c index 2ca93178..2229f1b1 100644 --- a/rigs/barrett/950.c +++ b/rigs/barrett/950.c @@ -61,7 +61,7 @@ const struct rig_caps barrett950_caps = .mfg_name = "Barrett", .version = BACKEND_VER ".0", .copyright = "LGPL", - .status = RIG_STATUS_ALPHA, + .status = RIG_STATUS_BETA, .rig_type = RIG_TYPE_TRANSCEIVER, .targetable_vfo = RIG_TARGETABLE_FREQ | RIG_TARGETABLE_MODE, .ptt_type = RIG_PTT_RIG, @@ -139,7 +139,7 @@ int barrett950_set_freq(RIG *rig, vfo_t vfo, freq_t freq) if (vfo != RIG_VFO_B) { char *response = NULL; - sprintf((char *) cmd_buf, "OR%08.0f", freq); + sprintf((char *) cmd_buf, "PR%08.0f", freq); retval = barrett_transaction(rig, cmd_buf, 0, &response); if (retval < 0) @@ -152,7 +152,7 @@ int barrett950_set_freq(RIG *rig, vfo_t vfo, freq_t freq) if (strncmp(response, "OK", 2) != 0) { rig_debug(RIG_DEBUG_ERR, "%s: Expected OK, got '%s'\n", __func__, response); - return -RIG_EINVAL; + return -RIG_EPROTO; } } @@ -172,7 +172,7 @@ int barrett950_set_freq(RIG *rig, vfo_t vfo, freq_t freq) if (strncmp(response, "OK", 2) != 0) { rig_debug(RIG_DEBUG_ERR, "%s: Expected OK, got '%s'\n", __func__, response); - return -RIG_EINVAL; + return -RIG_EPROTO; } } ----------------------------------------------------------------------- Summary of changes: rigs/barrett/950.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |