Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ config ZMK_BLE_MOUSE_REPORT_QUEUE_SIZE
config ZMK_BLE_CLEAR_BONDS_ON_START
bool "Configuration that clears all bond information from the keyboard on startup."

config ZMK_BLE_PROFILE_ADVERTISING
bool "Advertise on BLE profiles"
default y

# HID GATT notifications sent this way are *not* picked up by Linux, and possibly others.
config BT_GATT_NOTIFY_MULTIPLE
default n
Expand Down
7 changes: 7 additions & 0 deletions app/src/ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ bool zmk_ble_profile_is_connected(uint8_t index) {
advertising_status = ZMK_ADV_CONN;

int update_advertising(void) {
#if IS_ENABLED(CONFIG_ZMK_SPLIT_ROLE_CENTRAL)
#if !IS_ENABLED(CONFIG_ZMK_BLE_PROFILE_ADVERTISING)
LOG_INF("skipping advertising since profile advertising is disabled");
return 0;
#endif
#endif

int err = 0;
bt_addr_le_t *addr;
struct bt_conn *conn;
Expand Down