altos: Support ao_ms5607_dump when no ms5607 task
authorKeith Packard <keithp@keithp.com>
Tue, 18 Jun 2019 06:43:02 +0000 (23:43 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 18 Jun 2019 06:43:02 +0000 (23:43 -0700)
commitff7fa802f632700f73418246f1be5017ac0a09b4
treec01bae374eaa89a03a031e53ad3db13ec6567a67
parent7c5ba25e61f98fd4537062dce52ab22d1445fa24
altos: Support ao_ms5607_dump when no ms5607 task

MicroPeak v2.0 has tasking support, but doesn't have a separate ms5607
task. That means the device isn't getting initialized when not running
the flight code, so in cmd mode we need to make sure it's initialized,
and we also need to actually fetch a value to display.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_ms5607.c