Skip to content

Commit

Permalink
Taking autosens, AMA, and autotune and removing the advanced-feature …
Browse files Browse the repository at this point in the history
…sub-menu, plus making them recommended
  • Loading branch information
danamlewis committed May 21, 2017
1 parent 76ff214 commit 7e6ba69
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions bin/oref0-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,22 +238,20 @@ if [[ -z "$DIR" || -z "$serial" ]]; then
BT_PEB=$REPLY
echo "Ok, $BT_PEB it is."
fi
read -p "Do you need any advanced features? y/[N] " -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
read -p "Enable automatic sensitivity adjustment? y/[N] " -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
ENABLE+=" autosens "
fi
read -p "Enable autotuning of basals and ratios? y/[N] " -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
ENABLE+=" autotune "
fi
read -p "Enable advanced meal assist? y/[N] " -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
ENABLE+=" meal "
fi
fi
else
read -p "Enable automatic sensitivity adjustment? (Aka, "autosens". We recommend this." [Y]/n " -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
ENABLE+=" autosens "
fi
read -p "Enable autotuning of basals and ratios? (Recommended) [Y]/n " -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
ENABLE+=" autotune "
fi
read -p "Enable advanced meal assist? (Recommended) [Y]/n " -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
ENABLE+=" meal "
fi
else
if [[ $ww_ti_usb_reset =~ ^[Yy] ]]; then
ww_ti_usb_reset="yes"
else
Expand Down

0 comments on commit 7e6ba69

Please sign in to comment.