summaryrefslogtreecommitdiff
path: root/src/micropeak-v2.0
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2019-07-15 13:26:30 -0700
committerKeith Packard <keithp@keithp.com>2019-07-15 13:26:30 -0700
commit245a49a85dd7b6a7cb9ec36ad02f6bb66e42f4e2 (patch)
tree1b1950bc3c3272b237961cdeba3dd3d3b5c18961 /src/micropeak-v2.0
parent98f7c1c116aab672a29db1f81213cabe2d72ae16 (diff)
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>
Diffstat (limited to 'src/micropeak-v2.0')
-rw-r--r--src/micropeak-v2.0/ao_pins.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/micropeak-v2.0/ao_pins.h b/src/micropeak-v2.0/ao_pins.h
index 21ea337c..9dba26bd 100644
--- a/src/micropeak-v2.0/ao_pins.h
+++ b/src/micropeak-v2.0/ao_pins.h
@@ -63,6 +63,7 @@ extern uint8_t ao_on_battery;
#define IS_FLASH_LOADER 0
#define HAS_MS5607 1
+#define HAS_SENSOR_ERRORS 0
#define HAS_MS5611 0
#define HAS_MS5607_TASK 0
#define HAS_EEPROM 1