mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-10 13:40:37 -04:00
Don't use Qt::hex as not available on earlier versions of Qt
This commit is contained in:
parent
ac05f4e0a1
commit
45bf9e6d74
@ -183,7 +183,7 @@ void PacketDemodSink::processOneSample(Complex &ci)
|
||||
if (calcCrc == rxCrc)
|
||||
{
|
||||
QByteArray rxPacket((char *)m_bytes, m_byteCount);
|
||||
qDebug() << "RX: " << Qt::hex << rxPacket;
|
||||
qDebug() << "RX: " << rxPacket.toHex();
|
||||
if (getMessageQueueToChannel())
|
||||
{
|
||||
MainCore::MsgPacket *msg = MainCore::MsgPacket::create(m_packetDemod, rxPacket, QDateTime::currentDateTime()); // FIXME pointer
|
||||
@ -191,7 +191,7 @@ void PacketDemodSink::processOneSample(Complex &ci)
|
||||
}
|
||||
}
|
||||
else
|
||||
qDebug() << "CRC mismatch: " << Qt::hex << calcCrc << " " << Qt::hex << rxCrc;
|
||||
qDebug() << QString("CRC mismatch: %1 %2").arg(calcCrc, 4, 16, QLatin1Char('0')).arg(rxCrc, 4, 16, QLatin1Char('0'));
|
||||
// Reset state to start receiving next packet
|
||||
m_gotSOP = false;
|
||||
m_bits = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user