1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 21:06:50 +01:00

Pebble 2: Also honor the mtu when client gets a change reported

Should help older LE Pebbles
This commit is contained in:
Andreas Shimokawa 2016-11-21 17:29:16 +01:00
parent 647b67cfca
commit eb052cead3

View File

@ -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));
}