fix curentBasal rouding
This commit is contained in:
parent
3acabd792c
commit
199c6b5e2c
|
@ -16,7 +16,7 @@ public class MsgStatusBasic extends MessageBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void handleMessage(byte[] bytes) {
|
public void handleMessage(byte[] bytes) {
|
||||||
double currentBasal = intFromBuff(bytes, 0, 2) / 100;
|
double currentBasal = intFromBuff(bytes, 0, 2) / 100d;
|
||||||
int batteryRemaining = intFromBuff(bytes, 2, 1);
|
int batteryRemaining = intFromBuff(bytes, 2, 1);
|
||||||
double reservoirRemainingUnits = intFromBuff(bytes, 3, 3) / 750d;
|
double reservoirRemainingUnits = intFromBuff(bytes, 3, 3) / 750d;
|
||||||
double dailyTotalUnits = intFromBuff(bytes, 6, 3) / 750d;
|
double dailyTotalUnits = intFromBuff(bytes, 6, 3) / 750d;
|
||||||
|
|
Loading…
Reference in a new issue