From 1b69771893b3e24ce89906eff7b51e86afc5e96f Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 1 May 2017 14:28:45 +0200 Subject: [PATCH] report autosens to NS --- app/src/main/assets/OpenAPSAMA/determine-basal.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/assets/OpenAPSAMA/determine-basal.js b/app/src/main/assets/OpenAPSAMA/determine-basal.js index ac4fe2598c..089915685e 100644 --- a/app/src/main/assets/OpenAPSAMA/determine-basal.js +++ b/app/src/main/assets/OpenAPSAMA/determine-basal.js @@ -292,6 +292,8 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_ rT.COB=meal_data.mealCOB; rT.IOB=iob_data.iob; rT.reason="COB: " + meal_data.mealCOB + ", Dev: " + deviation + ", BGI: " + bgi + ", ISF: " + convert_bg(sens, profile) + ", Target: " + convert_bg(target_bg, profile) + "; "; + if (typeof autosens_data !== 'undefined' && profile.autosens_adjust_targets && autosens_data.ratio != 1) + rT.reason += "Autosens: " + autosens_data.ratio + "; "; if (bg < threshold) { // low glucose suspend mode: BG is < ~80 rT.reason += "BG " + convert_bg(bg, profile) + "<" + convert_bg(threshold, profile); if ((glucose_status.delta <= 0 && minDelta <= 0) || (glucose_status.delta < expectedDelta && minDelta < expectedDelta) || bg < 60 ) {