From fa84cbd513b754777c4a92cea4dab9ac718d1aad Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Fri, 2 Oct 2020 03:00:51 +0200 Subject: [PATCH] Replace Arrays.toString() with ByteUtil.shortHexString() in PodInfo.toString() --- .../message/response/podinfo/PodInfoActiveAlerts.java | 3 +-- .../message/response/podinfo/PodInfoFaultEvent.java | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/communication/message/response/podinfo/PodInfoActiveAlerts.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/communication/message/response/podinfo/PodInfoActiveAlerts.java index 6723a0a0da..36e1b1a213 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/communication/message/response/podinfo/PodInfoActiveAlerts.java +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/communication/message/response/podinfo/PodInfoActiveAlerts.java @@ -3,7 +3,6 @@ package info.nightscout.androidaps.plugins.pump.omnipod.driver.communication.mes import org.joda.time.Duration; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; import info.nightscout.androidaps.plugins.pump.common.utils.ByteUtil; @@ -54,7 +53,7 @@ public class PodInfoActiveAlerts extends PodInfo { @Override public String toString() { return "PodInfoActiveAlerts{" + - "word278=" + Arrays.toString(word278) + + "word278=" + ByteUtil.shortHexString(word278) + ", alertActivations=" + alertActivations + '}'; } diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/communication/message/response/podinfo/PodInfoFaultEvent.java b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/communication/message/response/podinfo/PodInfoFaultEvent.java index 4432670239..227206943b 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/communication/message/response/podinfo/PodInfoFaultEvent.java +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/driver/communication/message/response/podinfo/PodInfoFaultEvent.java @@ -2,8 +2,6 @@ package info.nightscout.androidaps.plugins.pump.omnipod.driver.communication.mes import org.joda.time.Duration; -import java.util.Arrays; - import info.nightscout.androidaps.plugins.pump.common.utils.ByteUtil; import info.nightscout.androidaps.plugins.pump.omnipod.driver.communication.message.response.StatusUpdatableResponse; import info.nightscout.androidaps.plugins.pump.omnipod.driver.definition.AlertSet; @@ -189,7 +187,7 @@ public class PodInfoFaultEvent extends PodInfo implements StatusUpdatableRespons ", receiverLowGain=" + receiverLowGain + ", radioRSSI=" + radioRSSI + ", podProgressStatusAtTimeOfFirstLoggedFaultEvent=" + podProgressStatusAtTimeOfFirstLoggedFaultEvent + - ", unknownValue=" + Arrays.toString(unknownValue) + + ", unknownValue=" + ByteUtil.shortHexString(unknownValue) + '}'; } }