X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fmicropeak%2Fao_pins.h;h=2c02f3a3acb34b997d79b5b733741ef30fb91e28;hb=07eecc0ff6e1104f911e5f83d67f3e14dc68c59c;hp=187b25442163a47fe0d63631ba3ed226bee125ca;hpb=24948ea1d41f2a7c96ac09e35d1250909e5726ae;p=fw%2Faltos diff --git a/src/micropeak/ao_pins.h b/src/micropeak/ao_pins.h index 187b2544..2c02f3a3 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 @@ -31,6 +32,7 @@ #define HAS_TASK 0 #define HAS_MS5607 1 #define HAS_MS5611 0 +#define HAS_SENSOR_ERRORS 0 #define HAS_EEPROM 0 #define HAS_BEEP 0 #define AVR_CLOCK 250000UL @@ -60,6 +62,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_ */