Fix wrong assignment, needed to properly deal with datalog messages longer than 255

here
Daniele Gobbetti 2016-04-04 23:13:57 +02:00
parent 403f74e59b
commit 34600e085e
1 changed files with 1 additions and 1 deletions

View File

@ -1876,7 +1876,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
int timestamp = buf.getInt();
int log_tag = buf.getInt();
byte item_type = buf.get();
short item_size = buf.get();
short item_size = buf.getShort();
LOG.info("DATALOG OPENSESSION. id=" + (id & 0xff) + ", App UUID=" + uuid.toString() + ", log_tag=" + log_tag + ", item_type=" + item_type + ", itemSize=" + item_size);
if (!mDatalogSessions.containsKey(id)) {
if (uuid.equals(UUID_ZERO) && log_tag == 81) {