parent
b1d1e701f9
commit
07f4d3148a
|
@ -68,7 +68,7 @@ public class FetchActivityOperation extends AbstractMiBand2Operation {
|
||||||
|
|
||||||
private List<MiBandActivitySample> samples = new ArrayList<>(60*24); // 1day per default
|
private List<MiBandActivitySample> samples = new ArrayList<>(60*24); // 1day per default
|
||||||
|
|
||||||
private byte lastPacketCounter = -1;
|
private byte lastPacketCounter;
|
||||||
private Calendar startTimestamp;
|
private Calendar startTimestamp;
|
||||||
private int fetchCount;
|
private int fetchCount;
|
||||||
|
|
||||||
|
@ -90,6 +90,9 @@ public class FetchActivityOperation extends AbstractMiBand2Operation {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startFetching() throws IOException {
|
private void startFetching() throws IOException {
|
||||||
|
samples.clear();
|
||||||
|
lastPacketCounter = -1;
|
||||||
|
|
||||||
TransactionBuilder builder = performInitialized("fetching activity data");
|
TransactionBuilder builder = performInitialized("fetching activity data");
|
||||||
getSupport().setLowLatency(builder);
|
getSupport().setLowLatency(builder);
|
||||||
if (fetchCount == 0) {
|
if (fetchCount == 0) {
|
||||||
|
|
Loading…
Reference in New Issue