Fix addr compare
This commit is contained in:
parent
5cf41b7596
commit
a171ff1f61
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ static void connected(struct bt_conn *conn, uint8_t err) {
|
||||||
// Now that we have the desired active connection, we disconnect
|
// Now that we have the desired active connection, we disconnect
|
||||||
// everything else.
|
// everything else.
|
||||||
for (int i = 0; i < ZMK_BLE_PROFILE_COUNT; i++) {
|
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);
|
zmk_ble_prof_disconnect(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue