Skip to content

Commit

Permalink
feat: Add more logging to peripheral settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Jul 21, 2023
1 parent ed400c4 commit 54c2e8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,12 @@ int zmk_ble_put_peripheral_addr(const bt_addr_le_t *addr) {
// If the address is recognized and already stored in settings, return
// index and no additional action is necessary.
if (bt_addr_le_cmp(&peripheral_addrs[i], addr) == 0) {
LOG_DBG("Found existing peripheral address in slot %d", i);
return i;
} else {
char addr_str[BT_ADDR_LE_STR_LEN];
bt_addr_le_to_str(&peripheral_addrs[i], addr_str, sizeof(addr_str));
LOG_DBG("peripheral slot %d occupied by %s", i, addr_str);
}

// If the peripheral address slot is open, store new peripheral in the
Expand Down

0 comments on commit 54c2e8e

Please sign in to comment.