Skip to content

Commit

Permalink
Fix layer change event cast
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar committed Feb 23, 2024
1 parent 7975872 commit ac910e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leds.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static int led_layer_listener_cb(const zmk_event_t *eh) {
}

// ignore layer off events
if (!((struct zmk_layer_state_changed *)eh)->state) {
if (!as_zmk_layer_state_changed(eh)->state) {
return 0;
}

Expand Down

0 comments on commit ac910e2

Please sign in to comment.