mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-11 18:35:49 +01:00
Pebble: Increase maximum notification body length from 255 to 512 bytes on firmware 3.x
This commit is contained in:
parent
803a3bea90
commit
f20e11d517
@ -1,6 +1,7 @@
|
|||||||
###Changelog
|
###Changelog
|
||||||
|
|
||||||
####Next Version
|
####Next Version
|
||||||
|
* Pebble: Increase maximum notification body length from 255 to 512 bytes on firmware 3.x
|
||||||
|
|
||||||
####Version 0.6.8
|
####Version 0.6.8
|
||||||
* Mi Band support for Firmware upgrade/downgrade on Mi Band 1A (white LEDs, no heartrate sensor)
|
* Mi Band support for Firmware upgrade/downgrade on Mi Band 1A (white LEDs, no heartrate sensor)
|
||||||
|
@ -759,7 +759,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int partlength = s.getBytes().length;
|
int partlength = s.getBytes().length;
|
||||||
if (partlength > 255) partlength = 255;
|
if (partlength > 512) partlength = 512;
|
||||||
buf.put(attribute_id);
|
buf.put(attribute_id);
|
||||||
buf.putShort((short) partlength);
|
buf.putShort((short) partlength);
|
||||||
buf.put(s.getBytes(), 0, partlength);
|
buf.put(s.getBytes(), 0, partlength);
|
||||||
|
Loading…
Reference in New Issue
Block a user