From 503bcee7b48f7b86c58ddc775effa5637181beb1 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Fri, 21 Oct 2016 13:07:07 +0200 Subject: [PATCH] Support record version 13 (firmware 4.2) --- .../service/devices/pebble/DatalogSessionHealthSteps.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionHealthSteps.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionHealthSteps.java index 9c9c6551d..b5bd16786 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionHealthSteps.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/DatalogSessionHealthSteps.java @@ -50,7 +50,7 @@ public class DatalogSessionHealthSteps extends DatalogSessionPebbleHealth { recordVersion = datalogMessage.getShort(); - if ((recordVersion != 5) && (recordVersion != 6) && (recordVersion != 7) && (recordVersion != 12)) + if ((recordVersion != 5) && (recordVersion != 6) && (recordVersion != 7) && (recordVersion != 12) && (recordVersion != 13)) return false; //we don't know how to deal with the data TODO: this is not ideal because we will get the same message again and again since we NACK it timestamp = datalogMessage.getInt(); @@ -101,7 +101,7 @@ public class DatalogSessionHealthSteps extends DatalogSessionPebbleHealth { } private class StepsRecord { - byte[] knownVersions = {5, 6, 7, 12}; + byte[] knownVersions = {5, 6, 7, 12, 13}; short version; int timestamp; int steps;