1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 10:56:50 +01:00

Pebble health: accept records of firmware 4.0 (nothing changed among the data we parse)

This commit is contained in:
Daniele Gobbetti 2016-09-04 15:59:19 +02:00
parent 41b20b8c57
commit 5cbedc782d

View File

@ -50,7 +50,7 @@ public class DatalogSessionHealthSteps extends DatalogSessionPebbleHealth {
recordVersion = datalogMessage.getShort(); recordVersion = datalogMessage.getShort();
if ((recordVersion != 5) && (recordVersion != 6)) if ((recordVersion != 5) && (recordVersion != 6) && (recordVersion != 7))
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 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(); timestamp = datalogMessage.getInt();
@ -101,7 +101,7 @@ public class DatalogSessionHealthSteps extends DatalogSessionPebbleHealth {
} }
private class StepsRecord { private class StepsRecord {
byte[] knownVersions = {5, 6}; byte[] knownVersions = {5, 6, 7};
short version; short version;
int timestamp; int timestamp;
int steps; int steps;