Commit 66894c47 authored by Jacob Priddy's avatar Jacob Priddy 👌

Add feature to allow entring commands in open mode when door is also

open
parent a77903c9
Pipeline #12545 failed with stages
in 45 seconds
......@@ -46,7 +46,7 @@ void door_state_task(void* parameters)
if (door_rtos_queue_receive(key_queue, &c, KEYPAD_CLEAR_TIME_MS))
{
// If we are in unlocked mode, just open the door and carry on.
if (door_rtos_event_get(DOOR_OPEN_MODE_EVENT))
if (door_rtos_event_get(DOOR_OPEN_MODE_EVENT) && !door_rtos_event_get(DOOR_LATCH_EVENT))
{
door_lock_open();
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment