Skip to content

Commit

Permalink
Conditional build logic around sensors.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Jul 22, 2020
1 parent 3d0bce8 commit 9fbd006
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#include <zmk/event-manager.h>
#include <zmk/events/sensor-event.h>

#if ZMK_KEYMAP_HAS_SENSORS

struct sensors_data_item {
u8_t sensor_number;
struct device *dev;
Expand Down Expand Up @@ -78,4 +80,6 @@ static int zmk_sensors_init(struct device *_arg)

SYS_INIT(zmk_sensors_init,
APPLICATION,
CONFIG_APPLICATION_INIT_PRIORITY);
CONFIG_APPLICATION_INIT_PRIORITY);

#endif /* ZMK_KEYMAP_HAS_SENSORS */

0 comments on commit 9fbd006

Please sign in to comment.