oref0-pump-loop reliability and debugging improvements (#575)
oref0-pump-loop reliability and debugging improvements (#575)

* echo status

* try preflight twice

* check radio 10x, and mmtune if all checks fail

* echo Preflight when starting it

* mmtune 30% of the time

* it's ok if refresh_profile or refresh_pumphistory_24h fail

* Revert "check radio 10x, and mmtune if all checks fail"

This reverts commit 6ea86371d33325275d12ab6186a1f579e45633c4.

* remove extra any_pump_comms debugging

* removing duplicate 30s wait_for_silence before mmtune

* show just last line of any_pump_comms 1 output when Radio check fails

* check radio thrice

* echo "Done waiting for rigs with better signal."

* case-insensitive grep to match 'Comms with pump detected' too

* print when preflight fails

* retry radio check one more time

* exponential backoff on Radio check

* echo -n . when retrying Radio check

* print any_pump_comms output when it doesn't succeed

* ignore mmeowlink-any-pump-comms.py exit code and just check output

* reduce debugging

PieterGit/oref0,openaps/oref0,openaps/oref0,PieterGit/oref0,PieterGit/oref0,openaps/oref0,PieterGit/oref0,openaps/oref0