From cf5ecf30d7a2185a58e02a28636dfd31979cdfaf Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Fri, 26 Dec 2025 00:06:56 -0600 Subject: [PATCH] Steal the TEXT_MESSAGE_COMPRESSED portnum --- src/modules/Native/StoreForwardPlusPlus.cpp | 4 ++-- src/modules/Native/StoreForwardPlusPlus.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/Native/StoreForwardPlusPlus.cpp b/src/modules/Native/StoreForwardPlusPlus.cpp index 25b7f6a52..2a44775fb 100644 --- a/src/modules/Native/StoreForwardPlusPlus.cpp +++ b/src/modules/Native/StoreForwardPlusPlus.cpp @@ -22,7 +22,7 @@ #include "modules/RoutingModule.h" StoreForwardPlusPlusModule::StoreForwardPlusPlusModule() - : ProtobufModule("StoreForwardpp", meshtastic_PortNum_STORE_FORWARD_PLUSPLUS_APP, &meshtastic_StoreForwardPlusPlus_msg), + : ProtobufModule("StoreForwardpp", meshtastic_PortNum_TEXT_MESSAGE_COMPRESSED_APP, &meshtastic_StoreForwardPlusPlus_msg), concurrency::OSThread("StoreForwardpp") { LOG_WARN("StoreForwardPlusPlusModule init"); @@ -274,7 +274,7 @@ ProcessMessage StoreForwardPlusPlusModule::handleReceived(const meshtastic_MeshP // canonAnnounce(lo.message_hash, lo.commit_hash, lo.root_hash, lo.rx_time); return ProcessMessage::CONTINUE; // Let others look at this message also if they want // TODO: Block packets from self? - } else if (mp.decoded.portnum == meshtastic_PortNum_STORE_FORWARD_PLUSPLUS_APP) { + } else if (mp.decoded.portnum == meshtastic_PortNum_TEXT_MESSAGE_COMPRESSED_APP) { LOG_WARN("Got a STORE_FORWARD++ packet"); meshtastic_StoreForwardPlusPlus scratch; pb_decode_from_bytes(mp.decoded.payload.bytes, mp.decoded.payload.size, meshtastic_StoreForwardPlusPlus_fields, &scratch); diff --git a/src/modules/Native/StoreForwardPlusPlus.h b/src/modules/Native/StoreForwardPlusPlus.h index 422994e74..c996448ee 100644 --- a/src/modules/Native/StoreForwardPlusPlus.h +++ b/src/modules/Native/StoreForwardPlusPlus.h @@ -77,7 +77,7 @@ class StoreForwardPlusPlusModule : public ProtobufModuledecoded.portnum) { case meshtastic_PortNum_TEXT_MESSAGE_APP: - case meshtastic_PortNum_STORE_FORWARD_PLUSPLUS_APP: + case meshtastic_PortNum_TEXT_MESSAGE_COMPRESSED_APP: return true; default: return false;