summaryrefslogtreecommitdiff
path: root/app/include/zmk/ble.h
diff options
context:
space:
mode:
authorJoel Spadin <joelspadin@gmail.com>2020-10-24 13:39:02 -0500
committerJoel Spadin <joelspadin@gmail.com>2020-10-28 18:15:05 -0500
commitb538e605321791568aa25f0bd534ebcb30da92c2 (patch)
tree7e6ec61bf59a37255f8544bb4b73509c2c370074 /app/include/zmk/ble.h
parent8f666cecc9717b3fbbe2f5f34375b6a45b8965fd (diff)
feat(endpoints): update on BLE profile change
Added zmk_ble_active_profile_is_connected() to allow code outside ble.c to check the status of the active profile, and changed the ble_active_profile_changed event to also notify when the active profile connects or disconnects. Changed endpoint selection to to also update when the active profile changes, connects, or disconnects.
Diffstat (limited to 'app/include/zmk/ble.h')
-rw-r--r--app/include/zmk/ble.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/include/zmk/ble.h b/app/include/zmk/ble.h
index 1cf71a7..56980c6 100644
--- a/app/include/zmk/ble.h
+++ b/app/include/zmk/ble.h
@@ -15,6 +15,7 @@ int zmk_ble_prof_prev();
int zmk_ble_prof_select(u8_t index);
bt_addr_le_t *zmk_ble_active_profile_addr();
+bool zmk_ble_active_profile_is_connected();
char *zmk_ble_active_profile_name();
int zmk_ble_unpair_all();