diff options
author | Nick <nick.win999@gmail.com> | 2020-08-05 22:38:40 -0500 |
---|---|---|
committer | Nick <nick.win999@gmail.com> | 2020-08-05 22:38:40 -0500 |
commit | 370cfcc59fdf2900feba653d4ce5b55a90050426 (patch) | |
tree | fb44a6fbfc2510e63d98cf7d920654b2f21bc215 | |
parent | cfea5cceb1ecb5dc2984ac6e6c0a389d8392f79e (diff) |
Add if block and param req callback comment
-rw-r--r-- | app/src/ble.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/ble.c b/app/src/ble.c index 6526357..7d986d7 100644 --- a/app/src/ble.c +++ b/app/src/ble.c @@ -76,17 +76,21 @@ static void security_changed(struct bt_conn *conn, bt_security_t level, } } +#if !IS_ENABLED(CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL) static bool le_param_req(struct bt_conn *conn, struct bt_le_conn_param *param) { static struct bt_conn_info info; bt_conn_get_info(conn, &info); + /* This captures a param change from central half of a split board connection + to stop default params from getting set over the top of our preferred ones */ if (info.role == BT_CONN_ROLE_MASTER && (param->interval_min != 6 || param->latency != 30)) { return false; } return true; } +#endif static struct bt_conn_cb conn_callbacks = { .connected = connected, |