From a171ff1f614d503bc93eb75957c70d510bad86e2 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Thu, 21 Dec 2023 02:28:55 -0500 Subject: [PATCH] Fix addr compare --- app/src/ble.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/ble.c b/app/src/ble.c index de3190ba..594fea11 100644 --- a/app/src/ble.c +++ b/app/src/ble.c @@ -467,7 +467,7 @@ static void connected(struct bt_conn *conn, uint8_t err) { // Now that we have the desired active connection, we disconnect // everything else. for (int i = 0; i < ZMK_BLE_PROFILE_COUNT; i++) { - if (i != active_profile && !bt_addr_le_cmp(&profiles[i].peer, BT_ADDR_LE_ANY)) { + if (i != active_profile && bt_addr_le_cmp(&profiles[i].peer, BT_ADDR_LE_ANY)) { zmk_ble_prof_disconnect(i); } }