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";
|
//qDebug() << "Have mode data";
|
||||||
this->parseMode();
|
this->parseMode();
|
||||||
break;
|
break;
|
||||||
|
case '\x05':
|
||||||
|
//qDebug() << "Have mode data";
|
||||||
|
this->parseMode();
|
||||||
|
break;
|
||||||
|
case '\x06':
|
||||||
|
//qDebug() << "Have mode data";
|
||||||
|
this->parseMode();
|
||||||
|
break;
|
||||||
case '\x14':
|
case '\x14':
|
||||||
// read levels
|
// read levels
|
||||||
parseLevels();
|
parseLevels();
|
||||||
|
@ -914,7 +922,8 @@ void rigCommander::parseMode()
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
qDebug() << "Mode: Unknown: " << payloadIn[01];
|
qDebug() << "Mode: Unknown: " << payloadIn[01];
|
||||||
mode = QString("Unk: %1").arg(payloadIn[01]);
|
printHex(payloadIn, false, true);
|
||||||
|
mode = QString("");
|
||||||
}
|
}
|
||||||
|
|
||||||
emit haveMode(mode);
|
emit haveMode(mode);
|
||||||
|
|
|
@ -870,7 +870,8 @@ void wfmain::receiveMode(QString mode)
|
||||||
//ui->modeLabel->setText(mode);
|
//ui->modeLabel->setText(mode);
|
||||||
int index;
|
int index;
|
||||||
//bool ok;
|
//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)
|
if( currentModeIndex == index)
|
||||||
{
|
{
|
||||||
// do nothing, no need to change the selected mode and fire more events off.
|
// do nothing, no need to change the selected mode and fire more events off.
|
||||||
|
|
|
@ -52,7 +52,6 @@ SOURCES += main.cpp\
|
||||||
rigidentities.cpp
|
rigidentities.cpp
|
||||||
|
|
||||||
HEADERS += wfmain.h \
|
HEADERS += wfmain.h \
|
||||||
../../../../../usr/include/qcustomplot.h \
|
|
||||||
commhandler.h \
|
commhandler.h \
|
||||||
rigcommander.h \
|
rigcommander.h \
|
||||||
freqmemory.h \
|
freqmemory.h \
|
||||||
|
|
Ładowanie…
Reference in New Issue