Check that a second VFO exists

creator-widgets
Phil Taylor 2024-02-03 20:07:41 +00:00
rodzic f710913950
commit 16063c07f8
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -1092,7 +1092,7 @@ void rigCommander::parseCommand()
// This tells us whether we are receiving main or sub data
case funcScopeSingleDual:
// This tells us whether we are receiving single or dual scopes
qInfo(logRig()) << "funcScopeSingleDual" << static_cast<bool>(payloadIn[0]);
//qInfo(logRig()) << "funcScopeSingleDual (" << vfo <<") " << static_cast<bool>(payloadIn[0]);
value.setValue(static_cast<bool>(payloadIn[0]));
break;
#if defined __GNUC__

Wyświetl plik

@ -3441,7 +3441,7 @@ void wfmain:: getInitialRigState()
queue->add(priorityImmediate,funcMonitorGain,false);
*/
if(rigCaps.hasSpectrum && vfos.size())
if(rigCaps.hasSpectrum)
{
queue->add(priorityImmediate,queueItem(funcScopeOnOff,QVariant::fromValue(quint8(1)),false));
queue->add(priorityImmediate,queueItem(funcScopeDataOutput,QVariant::fromValue(quint8(1)),false));
@ -3457,7 +3457,8 @@ void wfmain:: getInitialRigState()
auto sr = rigCaps.commands.find(funcScopeSubRef);
if (sr != rigCaps.commands.end())
{
vfos[1]->setRefLimits(sr.value().minVal,sr.value().maxVal);
if (vfos.size()>1)
vfos[1]->setRefLimits(sr.value().minVal,sr.value().maxVal);
queue->add(priorityImmediate,(funcScopeSubRef),false,true);
}
}