From e909540f8b0f6bfab82f8642ffe8f006bf5656d0 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 14 Aug 2022 19:54:05 +0200 Subject: [PATCH] Hamlib errorcode negative --- src/hamlib.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hamlib.cpp b/src/hamlib.cpp index 05385472..85121731 100644 --- a/src/hamlib.cpp +++ b/src/hamlib.cpp @@ -329,7 +329,9 @@ void Hamlib::update_from_hamlib_() pbwidth_t passband = 0; vfo_t currVfo = RIG_VFO_A; int result = rig_get_vfo(m_rig, &currVfo); - if (result != RIG_OK && result != RIG_ENAVAIL) + if (g_verbose) fprintf(stderr, "rig_get_vfo: error = %d \n", result); + //result=RIG_OK; + if (result != RIG_OK && result != -RIG_ENAVAIL) { if (g_verbose) fprintf(stderr, "rig_get_vfo: error = %s \n", rigerror(result)); }