kopia lustrzana https://gitlab.com/eliggett/wfview
Added additional mode command return support because we seem to
sometimes get the other formats.merge-requests/1/merge
rodzic
62ae4abe5b
commit
24a51074d6
|
@ -481,6 +481,14 @@ void rigCommander::parseCommand()
|
|||
//qDebug() << "Have mode data";
|
||||
this->parseMode();
|
||||
break;
|
||||
case '\x05':
|
||||
//qDebug() << "Have mode data";
|
||||
this->parseMode();
|
||||
break;
|
||||
case '\x06':
|
||||
//qDebug() << "Have mode data";
|
||||
this->parseMode();
|
||||
break;
|
||||
case '\x14':
|
||||
// read levels
|
||||
parseLevels();
|
||||
|
@ -914,7 +922,8 @@ void rigCommander::parseMode()
|
|||
break;
|
||||
default:
|
||||
qDebug() << "Mode: Unknown: " << payloadIn[01];
|
||||
mode = QString("Unk: %1").arg(payloadIn[01]);
|
||||
printHex(payloadIn, false, true);
|
||||
mode = QString("");
|
||||
}
|
||||
|
||||
emit haveMode(mode);
|
||||
|
|
|
@ -870,7 +870,8 @@ void wfmain::receiveMode(QString mode)
|
|||
//ui->modeLabel->setText(mode);
|
||||
int index;
|
||||
//bool ok;
|
||||
index = modes.indexOf(QRegExp(mode));
|
||||
index = modes.indexOf(QRegExp(mode)); // find the number corresponding to the mode
|
||||
qDebug() << "Received mode " << mode << " current mode: " << currentModeIndex << " search index: " << index;
|
||||
if( currentModeIndex == index)
|
||||
{
|
||||
// do nothing, no need to change the selected mode and fire more events off.
|
||||
|
|
|
@ -52,7 +52,6 @@ SOURCES += main.cpp\
|
|||
rigidentities.cpp
|
||||
|
||||
HEADERS += wfmain.h \
|
||||
../../../../../usr/include/qcustomplot.h \
|
||||
commhandler.h \
|
||||
rigcommander.h \
|
||||
freqmemory.h \
|
||||
|
|
Ładowanie…
Reference in New Issue