Don't use Qt::hex as not available on earlier versions of Qt

This commit is contained in:
Jon Beniston 2021-01-14 09:36:50 +00:00
parent ac05f4e0a1
commit 45bf9e6d74
1 changed files with 2 additions and 2 deletions

View File

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