Skip to content

Commit

Permalink
add autosens-adjusted ISF to reason field
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed May 15, 2016
1 parent 40bad10 commit 1979e98
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 @@ -178,9 +178,9 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
expectedDelta = Math.round(( bgi + ( target_bg - eventualBG ) / ( profile.dia * 60 / 5 ) )*10)/10;
mealAssistPct = Math.round(mealAssist*100);
wtfAssistPct = Math.round(wtfAssist*100);
rT.mealAssist = "On: "+mealAssistPct+"%, "+wtfAssistPct+"%, Carbs: " + meal_data.carbs + " Boluses: " + meal_data.boluses + " Target: " + Math.round(target_bg) + " Deviation: " + deviation + " BGI: " + bgi;
rT.mealAssist = "On: "+mealAssistPct+"%, "+wtfAssistPct+"%, Carbs: " + meal_data.carbs + " Boluses: " + meal_data.boluses + " ISF: " + sens + ", Target: " + Math.round(target_bg) + " Deviation: " + deviation + " BGI: " + bgi;
} else {
rT.mealAssist = "Off: Carbs: " + meal_data.carbs + " Boluses: " + meal_data.boluses + " Target: " + Math.round(target_bg) + " Deviation: " + deviation + " BGI: " + bgi;
rT.mealAssist = "Off: Carbs: " + meal_data.carbs + " Boluses: " + meal_data.boluses + " ISF: " + sens + ", Target: " + Math.round(target_bg) + " Deviation: " + deviation + " BGI: " + bgi;
}

rT.reason="";
Expand Down

0 comments on commit 1979e98

Please sign in to comment.