mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 03:16:51 +01:00
Pebble 2: Also honor the mtu when client gets a change reported
Should help older LE Pebbles
This commit is contained in:
parent
647b67cfca
commit
eb052cead3
@ -61,6 +61,7 @@ class PebbleGATTClient extends BluetoothGattCallback {
|
||||
if (characteristic.getUuid().equals(MTU_CHARACTERISTIC)) {
|
||||
int newMTU = characteristic.getIntValue(FORMAT_UINT16, 0);
|
||||
LOG.info("Pebble requested MTU: " + newMTU);
|
||||
mPebbleLESupport.setMTU(newMTU);
|
||||
} else {
|
||||
LOG.info("onCharacteristicChanged()" + characteristic.getUuid().toString() + " " + GB.hexdump(characteristic.getValue(), 0, -1));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user