Skip to content

Commit

Permalink
One more build fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Jul 22, 2020
1 parent 99afe6a commit 3d0bce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ int keymap_listener(const struct zmk_event_header *eh)
if (is_position_state_changed(eh)) {
const struct position_state_changed *ev = cast_position_state_changed(eh);
return zmk_keymap_position_state_changed(ev->position, ev->state);
#if defined(CONFIG_SENSOR)
#if ZMK_KEYMAP_HAS_SENSORS
} else if (is_sensor_event(eh)) {
const struct sensor_event *ev = cast_sensor_event(eh);
return zmk_keymap_sensor_triggered(ev->sensor_number, ev->sensor);
#endif /* defined(CONFIG_SENSOR) */
#endif /* ZMK_KEYMAP_HAS_SENSORS */
}

return -ENOTSUP;
Expand Down

0 comments on commit 3d0bce8

Please sign in to comment.