mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-25 00:30:37 +02: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
|
||||
|
||||
####Next Version
|
||||
* Pebble: Increase maximum notification body length from 255 to 512 bytes on firmware 3.x
|
||||
|
||||
####Version 0.6.8
|
||||
* 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;
|
||||
if (partlength > 255) partlength = 255;
|
||||
if (partlength > 512) partlength = 512;
|
||||
buf.put(attribute_id);
|
||||
buf.putShort((short) partlength);
|
||||
buf.put(s.getBytes(), 0, partlength);
|
||||
|
Loading…
Reference in New Issue
Block a user