summaryrefslogtreecommitdiff
path: root/app/src/sensors.c
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-07-24 22:47:26 -0400
committerPete Johanson <peter@peterjohanson.com>2020-07-25 23:10:40 -0400
commitc34472bf3fac36f11e2136ca2d3099adccfaa74f (patch)
treed5a8db82e6809eef41f1d6f7b4e0858f89be7225 /app/src/sensors.c
parent2ca6c21027027c2d30d22bb7cc26397e460fa384 (diff)
Fixes for loading without encoder drivers.
* Build fixes.
Diffstat (limited to 'app/src/sensors.c')
-rw-r--r--app/src/sensors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/sensors.c b/app/src/sensors.c
index 0a86109..501ce15 100644
--- a/app/src/sensors.c
+++ b/app/src/sensors.c
@@ -60,7 +60,8 @@ static void zmk_sensors_init_item(const char *node, u8_t i, u8_t abs_i)
sensors[i].sensor_number = abs_i;
if (!sensors[i].dev) {
- LOG_ERR("Failed to find device for %s", node);
+ LOG_WRN("Failed to find device for %s", node);
+ return;
}
sensor_trigger_set(sensors[i].dev, &sensors[i].trigger, zmk_sensors_trigger_handler);