From f3dae200a71876351e6481b7dad9c911ded603a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Dings=C3=B8r?= Date: Wed, 18 Mar 2026 09:11:22 +0100 Subject: [PATCH] fix: add ms suffix to door_open_time to match new name --- lib/elevator/fsm/action.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elevator/fsm/action.ex b/lib/elevator/fsm/action.ex index 12c1db0..48f4c50 100644 --- a/lib/elevator/fsm/action.ex +++ b/lib/elevator/fsm/action.ex @@ -96,7 +96,7 @@ defmodule Elevator.FSM.Action do if state.behavior == :door_open and Time.after?( Time.utc_now(), - Time.add(state.door_open_time, Elevator.door_open_duration_ms(), :millisecond) + Time.add(state.door_open_time_ms, Elevator.door_open_duration_ms(), :millisecond) ) do if state.obstructed do State.open_door()