diff --git a/app/src/main/java/info/nightscout/androidaps/data/Profile.java b/app/src/main/java/info/nightscout/androidaps/data/Profile.java index 6af7eed11e..dc49d95455 100644 --- a/app/src/main/java/info/nightscout/androidaps/data/Profile.java +++ b/app/src/main/java/info/nightscout/androidaps/data/Profile.java @@ -125,6 +125,12 @@ public class Profile { } public JSONObject getData() { + if (!json.has("units")) + try { + json.put("units", units); + } catch (JSONException e) { + e.printStackTrace(); + } return json; }