mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Fix wrong assignment, needed to properly deal with datalog messages longer than 255
This commit is contained in:
parent
403f74e59b
commit
34600e085e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user