1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

For #1936 - Use separate date/time fields and prefix address with leading 0.

This commit is contained in:
srcejon 2023-12-23 10:38:58 +00:00
parent bb406ca9a8
commit 97847425bb

View File

@ -179,9 +179,11 @@ bool PagerDemod::handleMessage(const Message& cmd)
if (m_settings.m_udpEnabled)
{
QByteArray message;
message.append(report.getDateTime().toString().toLatin1());
message.append(report.getDateTime().date().toString().toLatin1());
message.append('\0');
message.append(QString::number(report.getAddress()).toLatin1());
message.append(report.getDateTime().time().toString().toLatin1());
message.append('\0');
message.append(QString("%1").arg(report.getAddress(), 7, 10, QChar('0')).toLatin1());
message.append('\0');
message.append(QString::number(report.getFunctionBits()).toLatin1());
message.append('\0');