Skip to content

Commit

Permalink
wait 90m before setting minCOBPredBG
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Aug 19, 2017
1 parent 5aaae23 commit fc664b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/determine-basal/determine-basal.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
// wait 90m before setting minIOBPredBG
if ( IOBpredBGs.length > 18 && (IOBpredBG < minIOBPredBG) ) { minIOBPredBG = round(IOBpredBG); }
if ( IOBpredBG > maxIOBPredBG ) { maxIOBPredBG = IOBpredBG; }
// wait 60m before setting COB and UAM minPredBGs
if ( (cid || remainingCIpeak > 0) && COBpredBGs.length > 12 && (COBpredBG < minCOBPredBG) ) { minCOBPredBG = round(COBpredBG); }
// wait 90m before setting COB and 60m for UAM minPredBGs
if ( (cid || remainingCIpeak > 0) && COBpredBGs.length > 18 && (COBpredBG < minCOBPredBG) ) { minCOBPredBG = round(COBpredBG); }
if ( (cid || remainingCIpeak > 0) && COBpredBG > maxIOBPredBG ) { maxCOBPredBG = COBpredBG; }
if ( enableUAM && UAMpredBGs.length > 12 && (UAMpredBG < minUAMPredBG) ) { minUAMPredBG = round(UAMpredBG); }
if ( enableUAM && UAMpredBG > maxIOBPredBG ) { maxUAMPredBG = UAMpredBG; }
Expand Down

0 comments on commit fc664b3

Please sign in to comment.