mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
HPlus: delay day slot fetch
This commit is contained in:
@@ -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){
|
||||
|
Reference in New Issue
Block a user