summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/include/dt-bindings/zmk/bt.h16
-rw-r--r--app/src/behaviors/behavior_bt.c8
2 files changed, 12 insertions, 12 deletions
diff --git a/app/include/dt-bindings/zmk/bt.h b/app/include/dt-bindings/zmk/bt.h
index b2899ab..bf8b4f5 100644
--- a/app/include/dt-bindings/zmk/bt.h
+++ b/app/include/dt-bindings/zmk/bt.h
@@ -4,10 +4,10 @@
* SPDX-License-Identifier: MIT
*/
-#define BT_CLEAR_BONDS_CMD 0
-#define BT_PROF_NEXT_CMD 1
-#define BT_PROF_PREV_CMD 2
-#define BT_PROF_SEL_CMD 3
+#define BT_CLR_CMD 0
+#define BT_NXT_CMD 1
+#define BT_PRV_CMD 2
+#define BT_SEL_CMD 3
// #define BT_FULL_RESET_CMD 4
/*
@@ -15,7 +15,7 @@ Note: Some future commands will include additional parameters, so we
defines these aliases up front.
*/
-#define BT_CLEAR_BONDS BT_CLEAR_BONDS_CMD 0
-#define BT_PROF_NEXT BT_PROF_NEXT_CMD 0
-#define BT_PROF_PREV BT_PROF_PREV_CMD 0
-#define BT_PROF_SEL BT_PROF_SEL_CMD \ No newline at end of file
+#define BT_CLR BT_CLR_CMD 0
+#define BT_NXT BT_NXT_CMD 0
+#define BT_PRV BT_PRV_CMD 0
+#define BT_SEL BT_SEL_CMD \ No newline at end of file
diff --git a/app/src/behaviors/behavior_bt.c b/app/src/behaviors/behavior_bt.c
index bf15683..3a5fbfb 100644
--- a/app/src/behaviors/behavior_bt.c
+++ b/app/src/behaviors/behavior_bt.c
@@ -22,13 +22,13 @@ static int on_keymap_binding_pressed(struct device *dev, u32_t position, u32_t c
{
switch (command)
{
- case BT_CLEAR_BONDS_CMD:
+ case BT_CLR_CMD:
return zmk_ble_clear_bonds();
- case BT_PROF_NEXT_CMD:
+ case BT_NXT_CMD:
return zmk_ble_prof_next();
- case BT_PROF_PREV_CMD:
+ case BT_PRV_CMD:
return zmk_ble_prof_prev();
- case BT_PROF_SEL_CMD:
+ case BT_SEL_CMD:
return zmk_ble_prof_select(arg);
default:
LOG_ERR("Unknown BT command: %d", command);