X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fmicropeak%2Fao_pins.h;h=7cfbca490f17a2f4cb5094f5a8e514734210823e;hb=1085ec5d57e0ed5d132f2bbdac1a0b6a32c0ab4a;hp=257b8694bc3c6301ecea048660dd3c1602e90df0;hpb=ceea0e75ac42acac4a20bf88f34bb93fd2768f4c;p=fw%2Faltos diff --git a/src/micropeak/ao_pins.h b/src/micropeak/ao_pins.h index 257b8694..7cfbca49 100644 --- a/src/micropeak/ao_pins.h +++ b/src/micropeak/ao_pins.h @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -57,8 +58,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_ */