Skip to content
Snippets Groups Projects
Commit 88eee660 authored by Volker Richert's avatar Volker Richert
Browse files

also add the half poll grace period to reduce risc to hit normal pump communication

parent a9468920
No related branches found
No related tags found
No related merge requests found
...@@ -200,7 +200,7 @@ public class MedtronicCnlIntentService extends IntentService { ...@@ -200,7 +200,7 @@ public class MedtronicCnlIntentService extends IntentService {
// reduce polling interval to half until pump is available // reduce polling interval to half until pump is available
//TODO: make it configurable??? //TODO: make it configurable???
MedtronicCnlAlarmManager.setAlarm(System.currentTimeMillis() + MainActivity.pollInterval/2L); MedtronicCnlAlarmManager.setAlarm(System.currentTimeMillis() + (MainActivity.pollInterval + MedtronicCnlIntentService.POLL_GRACE_PERIOD_MS)/2L);
} else { } else {
activePump.setLastRadioChannel(radioChannel); activePump.setLastRadioChannel(radioChannel);
sendStatus(String.format(Locale.getDefault(), "Connected to Contour Next Link on channel %d.", (int) radioChannel)); sendStatus(String.format(Locale.getDefault(), "Connected to Contour Next Link on channel %d.", (int) radioChannel));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment