mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-10-01 17:26:40 -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)
|
if (calcCrc == rxCrc)
|
||||||
{
|
{
|
||||||
QByteArray rxPacket((char *)m_bytes, m_byteCount);
|
QByteArray rxPacket((char *)m_bytes, m_byteCount);
|
||||||
qDebug() << "RX: " << Qt::hex << rxPacket;
|
qDebug() << "RX: " << rxPacket.toHex();
|
||||||
if (getMessageQueueToChannel())
|
if (getMessageQueueToChannel())
|
||||||
{
|
{
|
||||||
MainCore::MsgPacket *msg = MainCore::MsgPacket::create(m_packetDemod, rxPacket, QDateTime::currentDateTime()); // FIXME pointer
|
MainCore::MsgPacket *msg = MainCore::MsgPacket::create(m_packetDemod, rxPacket, QDateTime::currentDateTime()); // FIXME pointer
|
||||||
@ -191,7 +191,7 @@ void PacketDemodSink::processOneSample(Complex &ci)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
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
|
// Reset state to start receiving next packet
|
||||||
m_gotSOP = false;
|
m_gotSOP = false;
|
||||||
m_bits = 0;
|
m_bits = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user