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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/micropeak/ao_pins.h b/src/micropeak/ao_pins.h
index 187b2544..63e9cb1b 100644
--- a/src/micropeak/ao_pins.h
+++ b/src/micropeak/ao_pins.h
@@ -60,6 +60,6 @@
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_ */