Skip to content
Snippets Groups Projects
Commit 9a775bc0 authored by Pogman's avatar Pogman
Browse files

Grace period already accounted for when using current intent time to set default restart

parent afb92d4e
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,8 @@ public class MedtronicCnlAlarmManager { ...@@ -80,7 +80,8 @@ public class MedtronicCnlAlarmManager {
// restarting the alarm after MedtronicCnlIntentService.POLL_PERIOD_MS from now // restarting the alarm after MedtronicCnlIntentService.POLL_PERIOD_MS from now
public static void restartAlarm() { public static void restartAlarm() {
setAlarmAfterMillis(MainActivity.pollInterval + MedtronicCnlIntentService.POLL_GRACE_PERIOD_MS); //setAlarmAfterMillis(MainActivity.pollInterval + MedtronicCnlIntentService.POLL_GRACE_PERIOD_MS);
setAlarmAfterMillis(MainActivity.pollInterval); // grace already accounted for when using current intent time to set default restart
} }
// Cancel the alarm. // Cancel the alarm.
......
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