diff options
author | Keith Packard <keithp@keithp.com> | 2012-12-16 16:06:41 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-12-16 16:06:41 -0800 |
commit | 8bcf3a88a78cd9d69da413d0d18233e8a532a10c (patch) | |
tree | 803ddf3c79fe31e53f46a01b82be15e52866052d /src/micropeak/ao_pins.h | |
parent | 22a58b0f9b82ea8c7abeda79ca7a4cd21c3dc93c (diff) | |
parent | 00bc1a090a294e103370b8ab0a0fe5d7a2acfe92 (diff) |
Merge branch 'master' into hacking-cc1120aprs
Diffstat (limited to 'src/micropeak/ao_pins.h')
-rw-r--r-- | src/micropeak/ao_pins.h | 3 |
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_ */ |