summaryrefslogtreecommitdiff
path: root/src/core/ao_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ao_data.h')
-rw-r--r--src/core/ao_data.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/ao_data.h b/src/core/ao_data.h
index 2b9ef5ac..90182b12 100644
--- a/src/core/ao_data.h
+++ b/src/core/ao_data.h
@@ -110,7 +110,12 @@ extern volatile __data uint8_t ao_data_count;
#define HAS_BARO 1
typedef int32_t pres_t;
-typedef int32_t alt_t;
+
+#ifndef AO_ALT_TYPE
+#define AO_ALT_TYPE int32_t
+#endif
+
+typedef AO_ALT_TYPE alt_t;
#define ao_data_pres_cook(packet) ao_ms5607_convert(&packet->ms5607_raw, &packet->ms5607_cooked)
@@ -135,6 +140,10 @@ typedef int16_t alt_t;
#endif
+#if !HAS_BARO
+typedef int16_t alt_t;
+#endif
+
/*
* Need a few macros to pull data from the sensors:
*