mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
HPlus: delay day slot fetch
This commit is contained in:
parent
ade7161c4d
commit
970c6960ea
@ -264,11 +264,13 @@ class HPlusHandlerThread extends GBDeviceIoThread {
|
|||||||
builder.queue(mHPlusSupport.getQueue());
|
builder.queue(mHPlusSupport.getQueue());
|
||||||
|
|
||||||
mGetDaySlotsTime = now;
|
mGetDaySlotsTime = now;
|
||||||
if(mSlotsToRequest < 144) {
|
if(mSlotsToRequest == 6) {
|
||||||
mGetDaySlotsTime.add(Calendar.SECOND, CURRENT_DAY_SYNC_RETRY_PERIOD);
|
mGetDaySlotsTime.add(Calendar.SECOND, CURRENT_DAY_SYNC_RETRY_PERIOD);
|
||||||
}else{
|
}else{
|
||||||
mGetDaySlotsTime.add(Calendar.SECOND, CURRENT_DAY_SYNC_PERIOD);
|
mGetDaySlotsTime.add(Calendar.SECOND, CURRENT_DAY_SYNC_PERIOD);
|
||||||
}
|
}
|
||||||
|
LOG.debug("Requesting next slot " + mLastSlotRequested+ " at " + mGetDaySlotsTime.getTime());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean processIncomingSleepData(byte[] data){
|
public boolean processIncomingSleepData(byte[] data){
|
||||||
|
Loading…
Reference in New Issue
Block a user