Skip to content

Commit

Permalink
syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Sep 23, 2017
1 parent adc5883 commit b2dd348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/determine-basal/determine-basal.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,13 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
insulinPeakTime = 55;
}
// add 15m to allow for insluin delivery (SMBs or temps)
var insulinPeakTime += 15;
insulinPeakTime += 15;
var insulinPeak5m = (insulinPeakTime/60)*12;

// wait 90m before setting minIOBPredBG
// wait 70-90m before setting minIOBPredBG
if ( IOBpredBGs.length > insulinPeak5m && (IOBpredBG < minIOBPredBG) ) { minIOBPredBG = round(IOBpredBG); }
if ( IOBpredBG > maxIOBPredBG ) { maxIOBPredBG = IOBpredBG; }
// wait 90m before setting COB and 60m for UAM minPredBGs
// wait 70-90m before setting COB and 60m for UAM minPredBGs
if ( (cid || remainingCIpeak > 0) && COBpredBGs.length > insulinPeak5m && (COBpredBG < minCOBPredBG) ) { minCOBPredBG = round(COBpredBG); }
if ( (cid || remainingCIpeak > 0) && COBpredBG > maxIOBPredBG ) { maxCOBPredBG = COBpredBG; }
if ( enableUAM && UAMpredBGs.length > 12 && (UAMpredBG < minUAMPredBG) ) { minUAMPredBG = round(UAMpredBG); }
Expand Down

0 comments on commit b2dd348

Please sign in to comment.