From 50f1e51d7ebb872c6881bbabd9292408b25c6368 Mon Sep 17 00:00:00 2001 From: Totoo Date: Tue, 17 Mar 2026 14:35:37 +0100 Subject: [PATCH] pocsag fix (#3097) --- .../external/pocsag_tx/ui_pocsag_tx.cpp | 2 +- .../external/pocsag_tx/ui_pocsag_tx.hpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/firmware/application/external/pocsag_tx/ui_pocsag_tx.cpp b/firmware/application/external/pocsag_tx/ui_pocsag_tx.cpp index 739404c5f..7c7a841aa 100644 --- a/firmware/application/external/pocsag_tx/ui_pocsag_tx.cpp +++ b/firmware/application/external/pocsag_tx/ui_pocsag_tx.cpp @@ -44,7 +44,7 @@ POCSAGTXView::~POCSAGTXView() { baseband::shutdown(); } -void POCSAGTXView::on_remote(const PocsagTosendMessage data) { +void POCSAGTXView::on_remete(const PocsagTosendMessage data) { // check if still sending or not size_t tmp = 0; if (data.baud == 1200) tmp = 1; diff --git a/firmware/application/external/pocsag_tx/ui_pocsag_tx.hpp b/firmware/application/external/pocsag_tx/ui_pocsag_tx.hpp index 4b70099f7..0005688ce 100644 --- a/firmware/application/external/pocsag_tx/ui_pocsag_tx.hpp +++ b/firmware/application/external/pocsag_tx/ui_pocsag_tx.hpp @@ -76,7 +76,7 @@ class POCSAGTXView : public View { void on_set_text(NavigationView& nav); void on_tx_progress(const uint32_t progress, const bool done); - void on_remote(const PocsagTosendMessage data); + void on_remete(const PocsagTosendMessage data); bool start_tx(); Labels labels{ @@ -140,19 +140,19 @@ class POCSAGTXView : public View { 10000, 9}; + MessageHandlerRegistration message_handler_tx_remete{ + Message::ID::PocsagTosend, + [this](const Message* const p) { + const auto message = *reinterpret_cast(p); + this->on_remete(message); + }}; + MessageHandlerRegistration message_handler_tx_progress{ Message::ID::TXProgress, [this](const Message* const p) { const auto message = *reinterpret_cast(p); this->on_tx_progress(message.progress, message.done); }}; - - MessageHandlerRegistration message_handler_tx_remote{ - Message::ID::PocsagTosend, - [this](const Message* const p) { - const auto message = *reinterpret_cast(p); - this->on_remote(message); - }}; }; } /* namespace ui::external_app::pocsag_tx */