summaryrefslogtreecommitdiff
path: root/app/src/behaviors/behavior_bt.c
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-09-08 23:26:00 -0400
committerPete Johanson <peter@peterjohanson.com>2020-09-13 22:33:29 -0400
commit39f980a06dac1769e4f09abaf19d3ccbb4b34e67 (patch)
tree01ca7749443822591e62087bcade5d321974defd /app/src/behaviors/behavior_bt.c
parente88d0833c5f8ddd2b8a9b93ab7b6d03c141f8463 (diff)
feat(bluetooth): Add back profiles, split fixes.
* Add back in profiles, not using Zephyr BT identity infrastructure. * Restore additional `&bt` commands for profile operations. * Fix for split pairing and subscriptions, since Zephyr persists subscriptions across connects. * Remove keymap from peripheral builds, reduces firmware size, and avoids unneeded attempts to send HID data.
Diffstat (limited to 'app/src/behaviors/behavior_bt.c')
-rw-r--r--app/src/behaviors/behavior_bt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/behaviors/behavior_bt.c b/app/src/behaviors/behavior_bt.c
index 63a1ef1..bf15683 100644
--- a/app/src/behaviors/behavior_bt.c
+++ b/app/src/behaviors/behavior_bt.c
@@ -24,6 +24,12 @@ static int on_keymap_binding_pressed(struct device *dev, u32_t position, u32_t c
{
case BT_CLEAR_BONDS_CMD:
return zmk_ble_clear_bonds();
+ case BT_PROF_NEXT_CMD:
+ return zmk_ble_prof_next();
+ case BT_PROF_PREV_CMD:
+ return zmk_ble_prof_prev();
+ case BT_PROF_SEL_CMD:
+ return zmk_ble_prof_select(arg);
default:
LOG_ERR("Unknown BT command: %d", command);
}