From 245a49a85dd7b6a7cb9ec36ad02f6bb66e42f4e2 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 15 Jul 2019 13:26:30 -0700 Subject: 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 --- src/micropeak/ao_pins.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/micropeak') diff --git a/src/micropeak/ao_pins.h b/src/micropeak/ao_pins.h index 7cfbca49..2c02f3a3 100644 --- a/src/micropeak/ao_pins.h +++ b/src/micropeak/ao_pins.h @@ -32,6 +32,7 @@ #define HAS_TASK 0 #define HAS_MS5607 1 #define HAS_MS5611 0 +#define HAS_SENSOR_ERRORS 0 #define HAS_EEPROM 0 #define HAS_BEEP 0 #define AVR_CLOCK 250000UL -- cgit v1.2.3