refactor: enhance command processing for dual-mode channel compatibility

This commit is contained in:
MayaTheShy
2026-03-26 16:19:38 -04:00
parent f1c8f08272
commit dcd9e22b6f

View File

@@ -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