Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/oref0-pump-loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ function refresh_profile {
function wait_for_bg {
if grep "MDT cgm" openaps.ini 2>&1 >/dev/null; then
echo "MDT CGM configured; not waiting"
elif egrep -q "Waiting 0.[0-9]m to microbolus again." enact/smb-suggested.json; then
elif egrep -q "Waiting [01].[0-9]m to microbolus again." enact/smb-suggested.json; then
echo "Retrying microbolus without waiting for new BG"
else
echo -n "Waiting up to 4 minutes for new BG: "
Expand Down
6 changes: 3 additions & 3 deletions lib/determine-basal/determine-basal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1033,11 +1033,11 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
}
rT.reason += ". ";

//allow SMBs every 2 minutes
var nextBolusMins = round(2-lastBolusAge,1);
//allow SMBs every 3 minutes
var nextBolusMins = round(3-lastBolusAge,1);
//console.error(naive_eventualBG, insulinReq, worstCaseInsulinReq, durationReq);
console.error("naive_eventualBG",naive_eventualBG+",",durationReq+"m "+smbLowTempReq+"U/h temp needed; last bolus",lastBolusAge+"m ago; maxBolus: "+maxBolus);
if (lastBolusAge > 2) {
if (lastBolusAge > 3) {
if (microBolus > 0) {
rT.units = microBolus;
rT.reason += "Microbolusing " + microBolus + "U. ";
Expand Down