From 4088b388834d53fa6b58784d3ae8f4674cc9994f Mon Sep 17 00:00:00 2001 From: Andy Rozman Date: Fri, 5 Jul 2019 12:21:49 +0100 Subject: [PATCH] - minor change in code - renamed version to 0.11, preparing for tag --- app/build.gradle | 2 +- .../plugins/pump/medtronic/data/MedtronicHistoryData.java | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 55955d0895..8b7917cbe6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -105,7 +105,7 @@ android { multiDexEnabled true versionCode 1500 // dev_version: 2.3.1-dev - version "medtronic-0.11.12-SNAPSHOT" + version "medtronic-0.11" buildConfigField "String", "VERSION", '"' + version + '"' buildConfigField "String", "BUILDVERSION", '"' + generateGitBuild() + '-' + generateDate() + '"' buildConfigField "String", "HEAD", '"' + generateGitBuild() + '"' diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.java index 9aff2bb890..2310a37423 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/medtronic/data/MedtronicHistoryData.java @@ -701,9 +701,13 @@ public class MedtronicHistoryData { return entriesFromHistory.get(0); } - for (int min = 0; min <= 2; min += 1) { + for (int min = 0; min < 2; min += 1) { - for (int sec = 0; sec <= 40; sec += 10) { + for (int sec = 0; sec <= 50; sec += 10) { + + if (min == 1 && sec == 50) { + sec = 59; + } int diff = (sec * 1000);