Pebble: Increase maximum notification body length from 255 to 512 bytes on firmware 3.x

master
Andreas Shimokawa 2015-12-07 12:25:34 +01:00
parent 803a3bea90
commit f20e11d517
2 changed files with 2 additions and 1 deletions

View File

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

View File

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