Skip to content

Commit

Permalink
slicemk: optimize connection parameters for power consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
xudongzheng committed Mar 1, 2023
1 parent b0efcde commit 7a2022d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/split/bluetooth/central.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,11 @@ static bool split_central_eir_found(const bt_addr_le_t *addr) {
struct peripheral_slot *slot = &peripherals[slot_idx];

LOG_DBG("Initiating new connnection");
struct bt_le_conn_param *param = BT_LE_CONN_PARAM(0x0006, 0x0006, 30, 400);
#ifdef CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC
struct bt_le_conn_param *param = BT_LE_CONN_PARAM(6, 6, 30, 400);
#else
struct bt_le_conn_param *param = BT_LE_CONN_PARAM(6, 6, 399, 900);
#endif
err = bt_conn_le_create(addr, BT_CONN_LE_CREATE_CONN, param, &slot->conn);
if (err < 0) {
LOG_ERR("Create conn failed (err %d) (create conn? 0x%04x)", err, BT_HCI_OP_LE_CREATE_CONN);
Expand Down

0 comments on commit 7a2022d

Please sign in to comment.