summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-08-19 23:38:08 -0400
committerGitHub <noreply@github.com>2020-08-19 23:38:08 -0400
commitb8b25f0c033860a8c5bf0df04218688bd2f1507f (patch)
tree0c11e1e37fced901ad3b69a4d97484973424323a /app/src
parent3576738ab4b2645724750c6d7b089c1ec2e15bd6 (diff)
parenta65b746a863bbd8e07cf404b4249526f75b069a3 (diff)
Merge pull request #108 from petejohanson/bluetooth/unpair-combo-build-fixes
Build unpair combo behavior in if DT node is present.
Diffstat (limited to 'app/src')
-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..f9d0551 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)