From b01a5178139f2d9f26e74e716692971b9b5749ab Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Mon, 8 Feb 2016 23:33:05 +0100 Subject: [PATCH] Pebble: fix hexdump for health datalog --- .../gadgetbridge/service/devices/pebble/PebbleProtocol.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java index ceee63cc..1ab21c4c 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleProtocol.java @@ -1832,7 +1832,7 @@ public class PebbleProtocol extends GBDeviceProtocol { LOG.info("DATALOG UUID=" + datalogSession.uuid + ", tag=" + datalogSession.tag + taginfo + ", item_size=" + datalogSession.item_size + ", item_type=" + datalogSession.item_type); } if (doHexdump) { - LOG.info(GB.hexdump(buf.array(), 10, length - 10)); + LOG.info(GB.hexdump(buf.array(), buf.position(), length - buf.position())); } break; case DATALOG_OPENSESSION: