Patch determine basal

This commit is contained in:
Tim Gunn 2020-05-03 23:09:48 +12:00
parent d5293d896d
commit 017b6187b5
No known key found for this signature in database
GPG key ID: C9BC1E9D0D0AED8C

View file

@ -897,7 +897,8 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
// if not in LGS mode, cancel temps before the top of the hour to reduce beeping/vibration // if not in LGS mode, cancel temps before the top of the hour to reduce beeping/vibration
// console.error(profile.skip_neutral_temps, rT.deliverAt.getMinutes()); // console.error(profile.skip_neutral_temps, rT.deliverAt.getMinutes());
if ( profile.skip_neutral_temps && rT.deliverAt.getMinutes() >= 55 ) { //patch determine basal so skip_neutral_temps works as expected
if ( !profile.skip_neutral_temps && rT.deliverAt.getMinutes() >= 55 ) {
rT.reason += "; Canceling temp at " + rT.deliverAt.getMinutes() + "m past the hour. "; rT.reason += "; Canceling temp at " + rT.deliverAt.getMinutes() + "m past the hour. ";
return tempBasalFunctions.setTempBasal(0, 0, profile, rT, currenttemp); return tempBasalFunctions.setTempBasal(0, 0, profile, rT, currenttemp);
} }