Skip to content

Commit

Permalink
fix: parse MxxRyy signals correctly
Browse files Browse the repository at this point in the history
Thanks to ml302 for pointing out the bug and providing a test scenario.
  • Loading branch information
YoRyan committed May 11, 2022
1 parent 454ef10 commit dd527a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Lib/NecSignals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function P.parsesigmessage(message)
end
-- Metro-North signals
do
local _, _, code = string.find(message, "^[MN](%d%d)$")
local _, _, code = string.find(message, "^[MN](%d%d)")
if code ~= nil then
territory = P.territory.mnrr
if code == "10" then
Expand Down

0 comments on commit dd527a1

Please sign in to comment.