Pebble: revert changes commited accidentially

This commit is contained in:
Andreas Shimokawa 2015-08-22 00:29:52 +02:00
parent 1150ad2b8d
commit cedd95186f
1 changed files with 2 additions and 2 deletions

View File

@ -568,7 +568,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
buf.putInt(timestamp); // 32-bit timestamp buf.putInt(timestamp); // 32-bit timestamp
buf.putShort((short) 0); // duration buf.putShort((short) 0); // duration
buf.put((byte) 0x01); // type (0x01 = notification) buf.put((byte) 0x01); // type (0x01 = notification)
buf.putShort((short) 0x001f); // flags 0x0001 = ? buf.putShort((short) 0x0001); // flags 0x0001 = ?
buf.put((byte) 0x04); // layout (0x04 = notification?) buf.put((byte) 0x04); // layout (0x04 = notification?)
buf.putShort(attributes_length); // total length of all attributes and actions in bytes buf.putShort(attributes_length); // total length of all attributes and actions in bytes
buf.put(attributes_count); buf.put(attributes_count);
@ -597,7 +597,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
if (mForceProtocol) { if (mForceProtocol) {
// ACTION // ACTION
buf.put((byte) 0x00); // id buf.put((byte) 0x01); // id
buf.put((byte) 0x04); // dismiss action buf.put((byte) 0x04); // dismiss action
buf.put((byte) 0x01); // number attributes buf.put((byte) 0x01); // number attributes
buf.put((byte) 0x01); // attribute id (title) buf.put((byte) 0x01); // attribute id (title)