Skip to content

Commit

Permalink
recalculate IOB before re-doing smb-suggested.json
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Sep 26, 2017
1 parent fc938f5 commit 792c3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/oref0-pump-loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function refresh_after_bolus_or_enact {
# refresh profile if >5m old to give SMB a chance to deliver
refresh_profile 3
gather || ( wait_for_silence 10 && gather ) || ( wait_for_silence 20 && gather )
openaps report invoke enact/smb-suggested.json 2>/dev/null >/dev/null \
openaps report invoke monitor/iob.json enact/smb-suggested.json 2>/dev/null >/dev/null \
&& cp -up enact/smb-suggested.json enact/suggested.json \
&& echo -n "IOB: " && cat enact/smb-suggested.json | jq .IOB
true
Expand Down

0 comments on commit 792c3da

Please sign in to comment.