Skip to content

Commit

Permalink
only display remainingCI debugging with COB
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Sep 20, 2017
1 parent 55c9b42 commit 071e5d4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/determine-basal/determine-basal.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,9 +423,11 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
} catch (e) {
console.error("Problem with iobArray. Optional feature Advanced Meal Assist disabled:",e);
}
console.error("predCIs:",predCIs.join(" "));
console.error("remainingCIs:",remainingCIs.join(" "));
console.error("COB:",meal_data.mealCOB,"remainingCItotal/csf:",round(remainingCItotal/csf,2),"remainingCarbs:",round(remainingCarbs,2));
if (meal_data.mealCOB) {
console.error("predCIs (mg/dL/5m):",predCIs.join(" "));
console.error("remainingCIs:",remainingCIs.join(" "));
console.error("COB:",meal_data.mealCOB,"remainingCItotal/csf:",round(remainingCItotal/csf,2),"remainingCarbs:",round(remainingCarbs,2));
}
//,"totalCA:",round(totalCA,2),"remainingCItotal/csf+totalCA:",round(remainingCItotal/csf+totalCA,2));
rT.predBGs = {};
IOBpredBGs.forEach(function(p, i, theArray) {
Expand Down

0 comments on commit 071e5d4

Please sign in to comment.