Make eliding the useless dummy rig model conditional on it existing

This commit is contained in:
Bill Somerville 2020-06-07 16:48:50 +01:00
parent 7eab62ec92
commit e7f9a64566
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -66,11 +66,14 @@ namespace
TransceiverFactory::Transceivers * rigs = reinterpret_cast<TransceiverFactory::Transceivers *> (callback_data); TransceiverFactory::Transceivers * rigs = reinterpret_cast<TransceiverFactory::Transceivers *> (callback_data);
// We can't use this one because it is only for testing Hamlib and // 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) if (RIG_MODEL_DUMMY_NOVFO == caps->rig_model)
{ {
return 1; return 1;
} }
#endif
QString key; QString key;
if (RIG_MODEL_DUMMY == caps->rig_model) if (RIG_MODEL_DUMMY == caps->rig_model)