Better detection of transceive command

merge-requests/2/head
Phil Taylor 2021-03-07 09:55:28 +00:00
rodzic 3e2862e4aa
commit 38fbc35535
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -183,7 +183,7 @@ void pttyHandler::receiveDataIn()
port->commitTransaction();
// filter 1A 05 01 12/27 = C-IV transceive command before forwarding on.
if (inPortData.length() > 7 && (inPortData.mid(4, 4) == QByteArrayLiteral("\x1a\x05\x01\x12") && (inPortData.mid(4, 4) == QByteArrayLiteral("\x1a\x05\x01\x27"))))
if (inPortData.contains(QByteArrayLiteral("\x1a\x05\x01\x12")) || inPortData.contains(QByteArrayLiteral("\x1a\x05\x01\x27")))
{
//qDebug(logSerial()) << "Filtered transceive command";
//printHex(inPortData, false, true);

Wyświetl plik

@ -1940,7 +1940,7 @@ void wfmain::receiveFreq(double freqMhz)
void wfmain::receivePTTstatus(bool pttOn)
{
// This is the only place where amTransmitting and the transmit button text should be changed:
qDebug(logSystem()) << "PTT status: " << pttOn;
//qDebug(logSystem()) << "PTT status: " << pttOn;
if (pttOn && !amTransmitting)
{
pttLed->setState(QLedLabel::State::StateError);