From 6dc3d38a2f45ef7448ad21f7893e344d1629ddcf Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Fri, 6 Jan 2017 09:52:17 +0100 Subject: [PATCH] fix passing carb ratio --- .../androidaps/plugins/OpenAPSMA/DetermineBasalAdapterJS.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSMA/DetermineBasalAdapterJS.java b/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSMA/DetermineBasalAdapterJS.java index ca62b7a197..a695e6a866 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSMA/DetermineBasalAdapterJS.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/OpenAPSMA/DetermineBasalAdapterJS.java @@ -111,7 +111,7 @@ public class DetermineBasalAdapterJS implements Parcelable { mProfile.add("max_basal", 0); mProfile.add("max_bg", 0); mProfile.add("min_bg", 0); - mProfile.add("carbratio", 0); + mProfile.add("carb_ratio", 0); mProfile.add("sens", 0); mProfile.add("current_basal", 0); mV8rt.add(PARAM_profile, mProfile); @@ -280,7 +280,7 @@ public class DetermineBasalAdapterJS implements Parcelable { mProfile.add("min_bg", minBg); mProfile.add("max_bg", maxBg); mProfile.add("target_bg", targetBg); - mProfile.add("carbratio", profile.getIc(profile.secondsFromMidnight())); + mProfile.add("carb_ratio", profile.getIc(profile.secondsFromMidnight())); mProfile.add("sens", NSProfile.toMgdl(profile.getIsf(NSProfile.secondsFromMidnight()).doubleValue(), units)); mProfile.add("current_basal", pump.getBaseBasalRate());