Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Sep 4, 2017
1 parent 7e82013 commit 0ce7d91
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/determine-basal/determine-basal.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,6 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
}
// eventualBG, snoozeBG, or minPredBG is below max_bg
if (Math.min(eventualBG,snoozeBG,minPredBG) < max_bg) {
// if there is a high-temp running and eventualBG > max_bg, let it run
//if (eventualBG > max_bg && round_basal(currenttemp.rate, profile) > round_basal(basal, profile) && currenttemp.duration > 5 ) {
//rT.reason += eventualBG + " > " + max_bg + ": no temp required (letting high temp of " + currenttemp.rate + " run). "
//return rT;
//}

// if in SMB mode, don't cancel SMB zero temp
if (! (microBolusAllowed && enableSMB )) {
rT.reason += convert_bg(eventualBG, profile)+"-"+convert_bg(Math.min(minPredBG,snoozeBG), profile)+" in range: bolus snooze, no temp required";
Expand Down

0 comments on commit 0ce7d91

Please sign in to comment.