Commit 5273c7f3 authored by Jacob Priddy's avatar Jacob Priddy 👌

fix keypad calling null pointer on release

parent ab1ee65e
Pipeline #12544 passed with stages
in 1 minute and 6 seconds
......@@ -72,7 +72,9 @@ static void release_all_keys(void)
while (tmp)
{
door_keypad_callback_t* cb = (door_keypad_callback_t*)tmp->data;
cb->on_release(keypad_map[row][col]);
if (cb->on_release) {
cb->on_release(keypad_map[row][col]);
}
tmp = tmp->next;
}
END_PROTECT_CALLBACKS_LIST;
......
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