provide lastBolusTime
This commit is contained in:
parent
ebfc4e3075
commit
4f16700dc0
|
@ -8,4 +8,5 @@ public class MealData {
|
|||
public double carbs = 0d;
|
||||
public double mealCOB = 0.0d;
|
||||
public double minDeviationSlope;
|
||||
public long lastBolusTime;
|
||||
}
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -247,6 +247,7 @@ public class TreatmentsPlugin implements PluginBase, TreatmentsInterface {
|
|||
result.mealCOB = autosensData.cob;
|
||||
result.minDeviationSlope = autosensData.minDeviationSlope;
|
||||
}
|
||||
result.lastBolusTime = getLastSMBTime();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue