kopia lustrzana https://gitlab.com/eliggett/wfview
Better detection of transceive command
rodzic
3e2862e4aa
commit
38fbc35535
|
@ -183,7 +183,7 @@ void pttyHandler::receiveDataIn()
|
||||||
port->commitTransaction();
|
port->commitTransaction();
|
||||||
|
|
||||||
// filter 1A 05 01 12/27 = C-IV transceive command before forwarding on.
|
// 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";
|
//qDebug(logSerial()) << "Filtered transceive command";
|
||||||
//printHex(inPortData, false, true);
|
//printHex(inPortData, false, true);
|
||||||
|
|
|
@ -1940,7 +1940,7 @@ void wfmain::receiveFreq(double freqMhz)
|
||||||
void wfmain::receivePTTstatus(bool pttOn)
|
void wfmain::receivePTTstatus(bool pttOn)
|
||||||
{
|
{
|
||||||
// This is the only place where amTransmitting and the transmit button text should be changed:
|
// 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)
|
if (pttOn && !amTransmitting)
|
||||||
{
|
{
|
||||||
pttLed->setState(QLedLabel::State::StateError);
|
pttLed->setState(QLedLabel::State::StateError);
|
||||||
|
|
Ładowanie…
Reference in New Issue