summaryrefslogtreecommitdiff
path: root/app/src/ble_unpair_combo.c
diff options
context:
space:
mode:
authorCrossR <r.cross@lancaster.ac.uk>2020-08-21 22:03:52 +0100
committerCrossR <r.cross@lancaster.ac.uk>2020-08-21 22:03:52 +0100
commit84761fc58931c8caa8cf1bf1b39946a9cb652822 (patch)
treeab5effc50925021507f742ed8206fbd683f4ee99 /app/src/ble_unpair_combo.c
parent5c29259fedc4a0265064afc0bc141e6bf33425f2 (diff)
parentc619fb9c58c8f2dbcc19d74e7502459b49633113 (diff)
Merge branch 'main' into CrossR/Sofle
Diffstat (limited to 'app/src/ble_unpair_combo.c')
-rw-r--r--app/src/ble_unpair_combo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/ble_unpair_combo.c b/app/src/ble_unpair_combo.c
index a33a8e2..82fa834 100644
--- a/app/src/ble_unpair_combo.c
+++ b/app/src/ble_unpair_combo.c
@@ -7,10 +7,11 @@
#include <device.h>
#include <init.h>
-#include <logging/log.h>
-
#define DT_DRV_COMPAT zmk_bt_unpair_combo
+#if DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT)
+
+#include <logging/log.h>
LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#include <zmk/ble.h>
@@ -78,3 +79,5 @@ ZMK_SUBSCRIPTION(zmk_ble_unpair_combo, position_state_changed);
SYS_INIT(zmk_ble_unpair_combo_init,
APPLICATION,
CONFIG_APPLICATION_INIT_PRIORITY);
+
+#endif /* DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT) */