provide lastBolusTime

This commit is contained in:
Milos Kozak 2017-08-21 15:47:37 +02:00
parent ebfc4e3075
commit 4f16700dc0
3 changed files with 3 additions and 0 deletions

View file

@ -8,4 +8,5 @@ public class MealData {
public double carbs = 0d;
public double mealCOB = 0.0d;
public double minDeviationSlope;
public long lastBolusTime;
}

View file

@ -283,6 +283,7 @@ public class DetermineBasalAdapterSMBJS {
mMealData.add("boluses", mealData.boluses);
mMealData.add("mealCOB", mealData.mealCOB);
mMealData.add("minDeviationSlope", mealData.minDeviationSlope);
mMealData.add("lastBolusTime", mealData.lastBolusTime);
mV8rt.add(PARAM_meal_data, mMealData);
if (MainApp.getConfigBuilder().isAMAModeEnabled()) {

View file

@ -247,6 +247,7 @@ public class TreatmentsPlugin implements PluginBase, TreatmentsInterface {
result.mealCOB = autosensData.cob;
result.minDeviationSlope = autosensData.minDeviationSlope;
}
result.lastBolusTime = getLastSMBTime();
return result;
}