mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Pebble 2: Also honor the mtu when client gets a change reported
Should help older LE Pebbles
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user