Skip to content

Commit 8a66092

Browse files
committed
Merge remote-tracking branch 'refs/remotes/openaps/dev' into 201705_fixes
2 parents 72e7e9f + b073f66 commit 8a66092

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

bin/oref0-determine-basal.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,24 @@ if (!module.parent) {
102102
return console.error("Could not parse input data: ", e);
103103
}
104104

105+
//attempting to provide a check for autotune
106+
//if autotune directory does not exist, SMB/oref1 should not be able to run
107+
108+
// console.error("Printing this so you know it's getting to the check for autotune.")
109+
110+
//printing microbolus before attempting check
111+
console.error("Microbolus var is currently set to: ",params['microbolus']);
112+
113+
if (params['microbolus']) {
114+
if (fs.existsSync("autotune")) {
115+
console.error("Autotune exists! Hoorah! You can use microbolus-related features.")
116+
} else {
117+
console.error("Warning: Autotune has not been run. All microboluses will be disabled until you manually run autotune or add it to run nightly in your loop.");
118+
params['microbolus'] = false;
119+
console.error("Microbolus var is currently set to: ",params['microbolus']);
120+
}
121+
}
122+
105123
//console.log(carbratio_data);
106124
var meal_data = { };
107125
//console.error("meal_input",meal_input);

bin/oref0-setup.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -861,10 +861,11 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
861861
echo Resetting spi_serial
862862
reset_spi_serial.py
863863
fi
864-
echo Attempting to communicate with pump:
865-
( killall -g openaps; killall -g oref0-pump-loop ) 2>/dev/null
866-
openaps mmtune
867-
echo
864+
# Commenting out the mmtune as attempt to stop the radio reboot errors that happen when re-setting up.
865+
# echo Attempting to communicate with pump:
866+
# ( killall -g openaps; killall -g oref0-pump-loop ) 2>/dev/null
867+
# openaps mmtune
868+
# echo
868869

869870
read -p "Schedule openaps in cron? y/[N] " -r
870871
if [[ $REPLY =~ ^[Yy]$ ]]; then

0 commit comments

Comments
 (0)