From 41e68a03a2d52a26031c152a5ae5e6649d63438d Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Fri, 11 Nov 2016 01:42:36 +0100 Subject: [PATCH] SimpleProfile as profile name --- .../plugins/SimpleProfile/SimpleProfilePlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/SimpleProfile/SimpleProfilePlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/SimpleProfile/SimpleProfilePlugin.java index b6b4667d64..baa3da71f6 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/SimpleProfile/SimpleProfilePlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/SimpleProfile/SimpleProfilePlugin.java @@ -217,7 +217,7 @@ public class SimpleProfilePlugin implements PluginBase, ProfileInterface { JSONObject profile = new JSONObject(); try { - json.put("defaultProfile", "Profile"); + json.put("defaultProfile", "SimpleProfile"); json.put("store", store); profile.put("dia", dia); profile.put("carbratio", new JSONArray().put(new JSONObject().put("timeAsSeconds", 0).put("value", ic))); @@ -227,11 +227,11 @@ public class SimpleProfilePlugin implements PluginBase, ProfileInterface { profile.put("target_low", new JSONArray().put(new JSONObject().put("timeAsSeconds", 0).put("value", targetLow))); profile.put("target_high", new JSONArray().put(new JSONObject().put("timeAsSeconds", 0).put("value", targetHigh))); profile.put("units", mgdl ? Constants.MGDL : Constants.MMOL); - store.put("Profile", profile); + store.put("SimpleProfile", profile); } catch (JSONException e) { e.printStackTrace(); } - convertedProfile = new NSProfile(json, null); + convertedProfile = new NSProfile(json, "SimpleProfile"); } @Override