From 9935ef8706ea1d34feddb8057cc2de49f8147653 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 7 Jun 2020 16:48:50 +0100 Subject: [PATCH] Make eliding the useless dummy rig model conditional on it existing --- Transceiver/HamlibTransceiver.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Transceiver/HamlibTransceiver.cpp b/Transceiver/HamlibTransceiver.cpp index ef301b1da..ea30a5b17 100644 --- a/Transceiver/HamlibTransceiver.cpp +++ b/Transceiver/HamlibTransceiver.cpp @@ -66,11 +66,14 @@ namespace TransceiverFactory::Transceivers * rigs = reinterpret_cast (callback_data); // We can't use this one because it is only for testing Hamlib and - // would confuse users, possibly causing operating on the wrong frequency! + // would confuse users, possibly causing operating on the wrong + // frequency! +#ifdef RIG_MODEL_DUMMY_NOVFO if (RIG_MODEL_DUMMY_NOVFO == caps->rig_model) { return 1; } +#endif QString key; if (RIG_MODEL_DUMMY == caps->rig_model)