Skip to content

Commit

Permalink
remove duplicate function definitions (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand authored Jan 7, 2018
1 parent 8ea4a53 commit 01d029e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions bin/oref0-pump-loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -520,20 +520,6 @@ function invoke_reservoir_etc {
test ${PIPESTATUS[0]} -eq 0
}
function calculate_iob {
oref0-calculate-iob monitor/pumphistory-merged.json settings/profile.json monitor/clock-zoned.json settings/autosens.json > monitor/iob.json || (echo; echo "Couldn't calculate IOB"; fail "$@")
}
function invoke_pumphistory_etc {
openaps report invoke monitor/clock.json monitor/temp_basal.json monitor/pumphistory.json monitor/pumphistory-zoned.json monitor/clock-zoned.json 2>&3 >&4 | tail -1
test ${PIPESTATUS[0]} -eq 0
}
function invoke_reservoir_etc {
openaps report invoke monitor/reservoir.json monitor/battery.json monitor/status.json 2>&3 >&4 | tail -1
test ${PIPESTATUS[0]} -eq 0
}
function merge_pumphistory {
jq -s '.[0] + .[1]|unique|sort_by(.timestamp)|reverse' monitor/pumphistory-zoned.json settings/pumphistory-24h-zoned.json > monitor/pumphistory-merged.json
calculate_iob
Expand Down

0 comments on commit 01d029e

Please sign in to comment.