Commit a77903c9 authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

fix calling null pointer

parent a43311f9
Pipeline #12543 failed with stages
in 46 seconds
......@@ -73,7 +73,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;
......
Supports Markdown
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