HPlus: delay day slot fetch

here
João Paulo Barraca 2017-01-05 14:24:39 +00:00
parent ade7161c4d
commit 970c6960ea
1 changed files with 3 additions and 1 deletions

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){