X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fmicropeak%2Fao_pins.h;h=7cfbca490f17a2f4cb5094f5a8e514734210823e;hp=187b25442163a47fe0d63631ba3ed226bee125ca;hb=aeb07f2b94b0121d4e5a6ce175ce4e013d6557cf;hpb=24948ea1d41f2a7c96ac09e35d1250909e5726ae diff --git a/src/micropeak/ao_pins.h b/src/micropeak/ao_pins.h index 187b2544..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 @@ -60,6 +61,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_ */