summaryrefslogtreecommitdiff
path: root/src/micropeak/ao_pins.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/micropeak/ao_pins.h')
-rw-r--r--src/micropeak/ao_pins.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/micropeak/ao_pins.h b/src/micropeak/ao_pins.h
index 257b8694..63e9cb1b 100644
--- a/src/micropeak/ao_pins.h
+++ b/src/micropeak/ao_pins.h
@@ -57,8 +57,9 @@
#define I2C_PIN_SDA PINB0
#define AO_CONST_ATTRIB PROGMEM
+typedef int32_t alt_t;
#define FETCH_ALT(o) ((alt_t) pgm_read_dword(&altitude_table[o]))
-#define AO_ALT_VALUE(x) ((x) * 10)
+#define AO_ALT_VALUE(x) ((x) * (alt_t) 10)
#endif /* _AO_PINS_H_ */