mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Pebble 2 Duo: react to MTU changes though the official BLE way
This commit is contained in:
+8
@@ -222,6 +222,14 @@ class PebbleGATTClient extends BluetoothGattCallback {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) {
|
||||||
|
if (status == BluetoothGatt.GATT_SUCCESS) {
|
||||||
|
LOG.info("MTU changed to {}", mtu);
|
||||||
|
mPebbleLESupport.setMTU(mtu);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void connectToPebble(BluetoothDevice btDevice) {
|
private void connectToPebble(BluetoothDevice btDevice) {
|
||||||
if (removeBond) {
|
if (removeBond) {
|
||||||
BondingUtil.Unpair(GBApplication.getContext(), btDevice.getAddress());
|
BondingUtil.Unpair(GBApplication.getContext(), btDevice.getAddress());
|
||||||
|
|||||||
Reference in New Issue
Block a user