Do not show zero voltage

This commit is contained in:
Milos Kozak 2023-01-10 18:43:27 +01:00
parent 2252858e65
commit f32709eaa6

View file

@ -64,7 +64,7 @@ class ProcessedDeviceStatusDataImpl @Inject constructor(
// if (pumpData.reservoirDisplayOverride != "") string.append(pumpData.reservoirDisplayOverride).append("$insulinUnit ")
// else if (fields.contains("reservoir")) string.append(pumpData.reservoir.toInt()).append("$insulinUnit ")
if (pumpData.isPercent) string.append(pumpData.percent).append("% ")
if (!pumpData.isPercent) string.append(Round.roundTo(pumpData.voltage, 0.001)).append(" ")
if (!pumpData.isPercent && pumpData.voltage > 0) string.append(Round.roundTo(pumpData.voltage, 0.001)).append(" ")
string.append(dateUtil.minAgo(rh, pumpData.clock)).append(" ")
string.append(pumpData.status).append(" ")
//string.append(device).append(" ")