altos: Allow ms5607 driver to either set ao_sensor_errors or panic
authorKeith Packard <keithp@keithp.com>
Mon, 15 Jul 2019 20:26:30 +0000 (13:26 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 15 Jul 2019 20:26:30 +0000 (13:26 -0700)
commit245a49a85dd7b6a7cb9ec36ad02f6bb66e42f4e2
tree1b1950bc3c3272b237961cdeba3dd3d3b5c18961
parent98f7c1c116aab672a29db1f81213cabe2d72ae16
altos: Allow ms5607 driver to either set ao_sensor_errors or panic

Products that want to remain usable (over USB) after a sensor failure
don't want to panic when the ms5607 fails, but products with limited
ROM space don't want to have extra code to check for the sensor
failure and panic. Change the MS5607 driver to allow either option,
and then make the micropeak based devices use it.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_ms5607.c
src/kernel/ao_data.h
src/kernel/ao_flight.h
src/microkite/ao_pins.h
src/micropeak-v2.0/ao_pins.h
src/micropeak/ao_pins.h
src/microsplash/ao_pins.h