diff options
author | Nick <nick.win999@gmail.com> | 2020-08-03 17:22:11 -0500 |
---|---|---|
committer | Nick <nick.win999@gmail.com> | 2020-08-03 17:22:11 -0500 |
commit | cfea5cceb1ecb5dc2984ac6e6c0a389d8392f79e (patch) | |
tree | 2a2d29af20a6fe26b1f33d90d4a1eeb15af0e789 /app/src/ble.c | |
parent | f23ca9d7ee7481ebdbbed3234e902e5b7753ae41 (diff) |
Remove updated callback
Diffstat (limited to 'app/src/ble.c')
-rw-r--r-- | app/src/ble.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/app/src/ble.c b/app/src/ble.c index db80a36..6526357 100644 --- a/app/src/ble.c +++ b/app/src/ble.c @@ -88,26 +88,12 @@ static bool le_param_req(struct bt_conn *conn, struct bt_le_conn_param *param) { return true; } -static void le_param_updated(struct bt_conn *conn, u16_t interval, - u16_t latency, u16_t timeout) { - static struct bt_conn_info info; - - bt_conn_get_info(conn, &info); - - if (info.role == BT_CONN_ROLE_MASTER && (interval != 6 || latency != 30)) { - bt_conn_le_param_update(conn, BT_LE_CONN_PARAM(0x0006, 0x0006, 30, 400)); - } - - LOG_DBG("Params updated: Interval: %d, Latency: %d", interval, latency); -}; - static struct bt_conn_cb conn_callbacks = { .connected = connected, .disconnected = disconnected, .security_changed = security_changed, #if !IS_ENABLED(CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL) .le_param_req = le_param_req, - .le_param_updated = le_param_updated, #endif }; |