From 97847425bba09ac800f17673bd7260000b3cebab Mon Sep 17 00:00:00 2001 From: srcejon Date: Sat, 23 Dec 2023 10:38:58 +0000 Subject: [PATCH] For #1936 - Use separate date/time fields and prefix address with leading 0. --- plugins/channelrx/demodpager/pagerdemod.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/demodpager/pagerdemod.cpp b/plugins/channelrx/demodpager/pagerdemod.cpp index 282824f1b..8bc9d227c 100644 --- a/plugins/channelrx/demodpager/pagerdemod.cpp +++ b/plugins/channelrx/demodpager/pagerdemod.cpp @@ -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');