From e49f1a9df9b04b0ab357d78425282e6999115142 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Mon, 1 Jun 2020 14:08:45 -0500 Subject: [PATCH] Change rig.c to use some sensible defaults when rig_get_vfo fails https://github.com/Hamlib/Hamlib/issues/274 --- src/rig.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rig.c b/src/rig.c index a6132d465..d430ddb52 100644 --- a/src/rig.c +++ b/src/rig.c @@ -925,6 +925,11 @@ int HAMLIB_API rig_open(RIG *rig) { rs->tx_vfo = rs->current_vfo; } + else // vfo fails so set some sensible defaults + { + rs->current_vfo = RIG_VFO_CURR; + rs->tx_vfo = RIG_VFO_TX; + } // try to turn off the screensaver if possible // don't care about the return here...it's just a nice-to-have