From dcd9e22b6fdbbcee68208eec0f1316d1b82a55fe Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Thu, 26 Mar 2026 16:19:38 -0400 Subject: [PATCH] refactor: enhance command processing for dual-mode channel compatibility --- turtle.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/turtle.lua b/turtle.lua index 29e7cc0..0005d17 100644 --- a/turtle.lua +++ b/turtle.lua @@ -446,9 +446,11 @@ parallel.waitForAny( function() -- Command processing (eval protocol) + -- Uses Channels.match() for dual-mode safety: accepts messages on + -- both legacy (100) and target (4210) channels during migration. while true do local event, side, channel, replyChannel, message = os.pullEvent("modem_message") - if channel == CHANNEL_RECEIVE then + if Channels.match('remoteturtle.command', channel) then processMessage(channel, message) end end