@@ -808,12 +808,12 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
808808 rT . ISF = convert_bg ( sens , profile ) ;
809809 rT . CR = round ( profile . carb_ratio , 2 ) ;
810810 rT . target_bg = convert_bg ( target_bg , profile ) ;
811- rT . reason = "COB: " + rT . COB + ", Dev: " + rT . deviation + ", BGI: " + rT . BGI + ", ISF: " + rT . ISF + ", CR: " + rT . CR + ", minPredBG " + convert_bg ( minPredBG , profile ) + ", minGuardBG " + convert_bg ( minGuardBG , profile ) + ", IOBpredBG " + convert_bg ( lastIOBpredBG , profile ) ;
811+ rT . reason = "COB: " + rT . COB + ", Dev: " + rT . deviation + ", BGI: " + rT . BGI + ", ISF: " + rT . ISF + ", CR: " + rT . CR + ", minPredBG: " + convert_bg ( minPredBG , profile ) + ", minGuardBG: " + convert_bg ( minGuardBG , profile ) + ", IOBpredBG: " + convert_bg ( lastIOBpredBG , profile ) ;
812812 if ( lastCOBpredBG > 0 ) {
813- rT . reason += ", COBpredBG " + convert_bg ( lastCOBpredBG , profile ) ;
813+ rT . reason += ", COBpredBG: " + convert_bg ( lastCOBpredBG , profile ) ;
814814 }
815815 if ( lastUAMpredBG > 0 ) {
816- rT . reason += ", UAMpredBG " + convert_bg ( lastUAMpredBG , profile )
816+ rT . reason += ", UAMpredBG: " + convert_bg ( lastUAMpredBG , profile )
817817 }
818818 rT . reason += "; " ;
819819
@@ -910,7 +910,7 @@ var maxDelta_bg_threshold;
910910 rT . reason += " and minDelta " + convert_bg ( minDelta , profile ) + " > " + "expectedDelta " + convert_bg ( expectedDelta , profile ) + "; " ;
911911 // predictive low glucose suspend mode: BG is / is projected to be < threshold
912912 } else if ( bg < threshold || minGuardBG < threshold ) {
913- rT . reason += "minGuardBG " + convert_bg ( minGuardBG , profile ) + "<" + convert_bg ( threshold , profile ) ;
913+ rT . reason += "minGuardBG: " + convert_bg ( minGuardBG , profile ) + "<" + convert_bg ( threshold , profile ) ;
914914 bgUndershoot = target_bg - minGuardBG ;
915915 var worstCaseInsulinReq = bgUndershoot / sens ;
916916 var durationReq = round ( 60 * worstCaseInsulinReq / profile . current_basal ) ;
0 commit comments