From 321c0ff1259c06b4e35634d721c5e89650e074cb Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Sat, 3 Oct 2015 23:42:22 +0200 Subject: [PATCH] Log when we get bogus timestamps #91 --- .../devices/miband/operations/FetchActivityOperation.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/operations/FetchActivityOperation.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/operations/FetchActivityOperation.java index 486d3e41..945d85ab 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/operations/FetchActivityOperation.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/miband/operations/FetchActivityOperation.java @@ -96,6 +96,7 @@ public class FetchActivityOperation extends AbstractBTLEOperation // something is fishy here... better not trust the given timestamp and simply // (re)use the current one // we do accept the timestamp to ack though, so that the bogus data is properly cleared on the band + LOG.warn("Got bogus timestamp: " + timestamp.getTime() + " that is smaller than the previous timestamp: " + activityDataTimestampProgress.getTime()); } } activityDataTimestampToAck = (GregorianCalendar) timestamp.clone();