Added additional mode command return support because we seem to

sometimes get the other formats.
merge-requests/1/merge
Elliott Liggett 2018-12-02 23:16:08 -08:00
rodzic 62ae4abe5b
commit 24a51074d6
3 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -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);

Wyświetl plik

@ -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.

Wyświetl plik

@ -52,7 +52,6 @@ SOURCES += main.cpp\
rigidentities.cpp
HEADERS += wfmain.h \
../../../../../usr/include/qcustomplot.h \
commhandler.h \
rigcommander.h \
freqmemory.h \