diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/DanaRKorean/comm/MsgSettingBasal.java b/app/src/main/java/info/nightscout/androidaps/plugins/DanaRKorean/comm/MsgSettingBasal.java index c2ae8a7732..986bbda55a 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/DanaRKorean/comm/MsgSettingBasal.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/DanaRKorean/comm/MsgSettingBasal.java @@ -25,7 +25,7 @@ public class MsgSettingBasal extends MessageBase { for (int index = 0; index < 24; index++) { int basal = intFromBuff(bytes, 2 * index, 2); if (basal < 10) basal = 0; - pump.pumpProfiles[pump.activeProfile][index] = basal / 100 / 24d; // in units/day + pump.pumpProfiles[pump.activeProfile][index] = basal / 100; } if (Config.logDanaMessageDetail) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/DanaRKorean/comm/MsgStatusBasic.java b/app/src/main/java/info/nightscout/androidaps/plugins/DanaRKorean/comm/MsgStatusBasic.java index 2d45754ce3..a8c39167be 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/DanaRKorean/comm/MsgStatusBasic.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/DanaRKorean/comm/MsgStatusBasic.java @@ -16,7 +16,7 @@ public class MsgStatusBasic extends MessageBase { } public void handleMessage(byte[] bytes) { - double currentBasal = intFromBuff(bytes, 0, 2) / 100 / 24d; // in units/day + double currentBasal = intFromBuff(bytes, 0, 2) / 100; int batteryRemaining = intFromBuff(bytes, 2, 1); double reservoirRemainingUnits = intFromBuff(bytes, 3, 3) / 750d; double dailyTotalUnits = intFromBuff(bytes, 6, 3) / 750d;