|
|
@@ -78,10 +78,6 @@ function enable_smb(profile, microBolusAllowed, meal_data, bg, target_bg, high_b
|
|
|
} else if (meal_data.bwFound === true && profile.A52_risk_enable === false) {
|
|
|
console.error("SMB disabled due to Bolus Wizard activity in the last 6 hours.");
|
|
|
return false;
|
|
|
- // Disable if invalid CGM reading (HIGH)
|
|
|
- } else if (!!trio_custom_variables.shouldProtectDueToHIGH) {
|
|
|
- console.error("Invalid CGM (HIGH). SMBs disabled.");
|
|
|
- return false;
|
|
|
}
|
|
|
|
|
|
// enable SMB/UAM if always-on (unless previously disabled for high temptarget)
|
|
|
@@ -1616,11 +1612,6 @@ var maxDelta_bg_threshold;
|
|
|
|
|
|
var maxSafeBasal = tempBasalFunctions.getMaxSafeBasal(profile);
|
|
|
|
|
|
- // set neutral TBR at current basal rate because glucose is considered as requiring dosing Protect due to HIGH (400 mg/dL)
|
|
|
- if (!!trio_custom_variables.shouldProtectDueToHIGH) {
|
|
|
- return tempBasalFunctions.setTempBasal(profile.current_basal, 30, profile, rT, currenttemp);
|
|
|
- }
|
|
|
-
|
|
|
if (rate > maxSafeBasal) {
|
|
|
rT.reason += "adj. req. rate: " + rate + " to maxSafeBasal: " + round(maxSafeBasal,2) + ", ";
|
|
|
rate = round_basal(maxSafeBasal, profile);
|