Skip to content

Commit

Permalink
per @Bender1061 suggestion, retry preflight model check
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Jul 5, 2017
1 parent 86d8e1c commit a4e6db0
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 @@ -313,7 +313,7 @@ function mdt_get_bg {
# make sure we can talk to the pump and get a valid model number
function preflight {
# only 515, 522, 523, 715, 722, 723, 554, and 754 pump models have been tested with SMB
openaps report invoke settings/model.json 2>&1 >/dev/null | tail -1 \
( openaps report invoke settings/model.json || openaps report invoke settings/model.json ) 2>&1 >/dev/null | tail -1 \
&& egrep -q "[57](15|22|23|54)" settings/model.json \
&& echo -n "Preflight OK. "
}
Expand Down

0 comments on commit a4e6db0

Please sign in to comment.