From d4858305a911e6bc20b1f6e3485adbbbfd585208 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Fri, 14 Jun 2019 12:09:27 +0200 Subject: [PATCH] fix double value --- .../general/automation/actions/ActionStartTempTarget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/actions/ActionStartTempTarget.java b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/actions/ActionStartTempTarget.java index 83a47fe288..24ae015360 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/actions/ActionStartTempTarget.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/automation/actions/ActionStartTempTarget.java @@ -98,7 +98,7 @@ public class ActionStartTempTarget extends Action { JSONObject d = new JSONObject(data); reason = JsonHelper.safeGetString(d, "reason"); value.setUnits(JsonHelper.safeGetString(d, "units")); - value.setValue(JsonHelper.safeGetInt(d, "value")); + value.setValue(JsonHelper.safeGetDouble(d, "value")); duration.setMinutes(JsonHelper.safeGetInt(d, "durationInMinutes")); } catch (JSONException e) { e.printStackTrace();