From ffb6d679c09f67bcb955ff7f77661db38e8f833c Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Thu, 26 Mar 2026 16:19:29 -0400 Subject: [PATCH] refactor: enhance status message handling for dual-mode channel compatibility --- pocketgps.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pocketgps.lua b/pocketgps.lua index c30480f..9714404 100644 --- a/pocketgps.lua +++ b/pocketgps.lua @@ -231,7 +231,9 @@ local function main() local replyChannel = param3 local message = param4 - if channel == STATUS_CHANNEL and type(message) == "table" then + -- Uses Channels.match() for dual-mode safety: accepts messages on + -- both legacy (102) and target (4212) channels during migration. + if Channels.match('remoteturtle.status', channel) and type(message) == "table" then handleStatus(message) end