|
@@ -71,13 +71,10 @@ void bt_driver_cb_gatt_handle_mtu_update(const GattDeviceMtuUpdateEvent *event)
|
|
|
if (!connection) {
|
|
|
goto unlock;
|
|
|
}
|
|
|
- const bool has_mtu_changed = (connection->gatt_mtu != event->mtu);
|
|
|
+
|
|
|
PBL_LOG(LOG_LEVEL_DEBUG, "Handle MTU change from %d to %d bytes",
|
|
|
connection->gatt_mtu, event->mtu);
|
|
|
- if (has_mtu_changed) {
|
|
|
- connection->gatt_mtu = event->mtu;
|
|
|
- }
|
|
|
- BLE_LOG_DEBUG("GATT MTU Updated: remote: %u", event->mtu);
|
|
|
+ connection->gatt_mtu = event->mtu;
|
|
|
}
|
|
|
unlock:
|
|
|
bt_unlock();
|