From c019b4c533186d826c494a862c3781a177b2221d Mon Sep 17 00:00:00 2001 From: Jamorham Date: Sun, 28 Jan 2018 22:04:21 +0000 Subject: [PATCH] Insight Cstatus add success helper --- .../nightscout/androidaps/plugins/PumpInsight/Cstatus.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/Cstatus.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/Cstatus.java index 81d119cd60..53c0cf798f 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/Cstatus.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsight/Cstatus.java @@ -11,5 +11,10 @@ enum Cstatus { PENDING, SUCCESS, FAILURE, - TIMEOUT + TIMEOUT; + + boolean success() { + return this == SUCCESS; + } + }