Skip to content

Commit

Permalink
Consider stopped trains as a prediction (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJKim authored Jun 7, 2024
1 parent 601a679 commit 764d4e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/signs/utilities/last_trip.ex
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ defmodule Signs.Utilities.LastTrip do
end

defp is_prediction?(message) do
match?(%Content.Message.Predictions{}, message)
match?(%Content.Message.Predictions{}, message) or
match?(%Content.Message.StoppedTrain{}, message)
end

defp is_empty?(message) do
Expand Down

0 comments on commit 764d4e2

Please sign in to comment.