From f32709eaa6c30b64681c1e60a8e46db293db0f18 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 10 Jan 2023 18:43:27 +0100 Subject: [PATCH] Do not show zero voltage --- .../plugins/sync/nsclient/data/ProcessedDeviceStatusDataImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclient/data/ProcessedDeviceStatusDataImpl.kt b/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclient/data/ProcessedDeviceStatusDataImpl.kt index 6a89a6501b..377350f602 100644 --- a/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclient/data/ProcessedDeviceStatusDataImpl.kt +++ b/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclient/data/ProcessedDeviceStatusDataImpl.kt @@ -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(" ")