Added more freq and mode parsing.

merge-requests/1/merge
Elliott Liggett 2019-01-10 16:10:17 -08:00
rodzic a3f4dd9ec4
commit 4c056fe61b
1 zmienionych plików z 16 dodań i 1 usunięć

Wyświetl plik

@ -503,6 +503,12 @@ void rigCommander::parseCommand()
case 03:
parseFrequency();
break;
case '\x25':
if((int)payloadIn[1] == 0)
{
emit haveFrequency((double)parseFrequency(payloadIn, 5));
}
break;
case '\x01':
//qDebug() << "Have mode data";
this->parseMode();
@ -528,6 +534,15 @@ void rigCommander::parseCommand()
// printHex(payloadIn, false, true);
model = determineRadioModel(payloadIn[2]);
break;
case '\x26':
if((int)payloadIn[1] == 0)
{
// This works but LSB comes out as CW?
// Also, an opportunity to read the data mode
// payloadIn = payloadIn.right(3);
// this->parseMode();
}
break;
case '\x27':
// scope data
//qDebug() << "Have scope data";
@ -688,7 +703,7 @@ void rigCommander::parsePTT()
// Because I'm not sure about this:
qDebug() << "PTT status received, here is the hex dump:";
printHex(payloadIn, false, true);
if(payloadIn[03] == (char)0)
if(payloadIn[2] == (char)0)
{
// PTT off
emit havePTTStatus(false);