Merge branch 'smb060' of https://gitlab.com/MilosKozak/AndroidAPS into smb060

This commit is contained in:
Milos Kozak 2018-01-15 12:47:28 +01:00
commit c501d8e3c5

View file

@ -445,7 +445,7 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
// 20 g/h means that anything <= 60g will get a remainingCATimeMin, 80g will get 4h, and 120g 6h // 20 g/h means that anything <= 60g will get a remainingCATimeMin, 80g will get 4h, and 120g 6h
// when actual absorption ramps up it will take over from remainingCATime // when actual absorption ramps up it will take over from remainingCATime
var assumedCarbAbsorptionRate = 20; // g/h; maximum rate to assume carbs will absorb if no CI observed var assumedCarbAbsorptionRate = 20; // g/h; maximum rate to assume carbs will absorb if no CI observed
var remainingCATime; var remainingCATime = remainingCATimeMin; // added by mike https://github.com/openaps/oref0/issues/884
if (meal_data.carbs) { if (meal_data.carbs) {
// if carbs * assumedCarbAbsorptionRate > remainingCATimeMin, raise it // if carbs * assumedCarbAbsorptionRate > remainingCATimeMin, raise it
// so <= 90g is assumed to take 3h, and 120g=4h // so <= 90g is assumed to take 3h, and 120g=4h