1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-24 19:06:53 +01:00

HPlus: delay day slot fetch

This commit is contained in:
João Paulo Barraca 2017-01-05 14:24:39 +00:00
parent ade7161c4d
commit 970c6960ea

View File

@ -264,11 +264,13 @@ class HPlusHandlerThread extends GBDeviceIoThread {
builder.queue(mHPlusSupport.getQueue());
mGetDaySlotsTime = now;
if(mSlotsToRequest < 144) {
if(mSlotsToRequest == 6) {
mGetDaySlotsTime.add(Calendar.SECOND, CURRENT_DAY_SYNC_RETRY_PERIOD);
}else{
mGetDaySlotsTime.add(Calendar.SECOND, CURRENT_DAY_SYNC_PERIOD);
}
LOG.debug("Requesting next slot " + mLastSlotRequested+ " at " + mGetDaySlotsTime.getTime());
}
public boolean processIncomingSleepData(byte[] data){