r++;
}
- if (!ao_ms5607_prom_valid((uint8_t *) prom))
+
+ if (!ao_ms5607_prom_valid((uint8_t *) prom)) {
+#if HAS_SENSOR_ERRORS
+ ao_sensor_errors = 1;
+#else
ao_panic(AO_PANIC_SELF_TEST_MS5607);
+#endif
+ }
#if __BYTE_ORDER == __LITTLE_ENDIAN
/* Byte swap */
struct ao_ms5607_value value;
#if !HAS_MS5607_TASK
- ao_ms5607_info();
ao_ms5607_sample(&ao_ms5607_current);
#endif
ao_ms5607_convert(&ao_ms5607_current, &value);