Skip to content

Commit

Permalink
feat(bluetooth): Build on ARCH_POSIX.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Oct 14, 2023
1 parent a9f6770 commit 7cd5093
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ menuconfig ZMK_BLE
select BT_SMP_APP_PAIRING_ACCEPT
select BT_PERIPHERAL
select BT_DIS
select BT_SETTINGS
select SETTINGS
imply ZMK_BATTERY_REPORTING
imply BT_SETTINGS if !ARCH_POSIX
imply SETTINGS if !ARCH_POSIX
imply ZMK_BATTERY_REPORTING if !ARCH_POSIX

if ZMK_BLE

Expand Down
2 changes: 2 additions & 0 deletions app/src/ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ void set_profile_address(uint8_t index, const bt_addr_le_t *addr) {
memcpy(&profiles[index].peer, addr, sizeof(bt_addr_le_t));
sprintf(setting_name, "ble/profiles/%d", index);
LOG_DBG("Setting profile addr for %s to %s", setting_name, addr_str);
#if IS_ENABLED(CONFIG_SETTINGS)
settings_save_one(setting_name, &profiles[index], sizeof(struct zmk_ble_profile));
#endif
k_work_submit(&raise_profile_changed_event_work);
}

Expand Down

0 comments on commit 7cd5093

Please sign in to comment.