From 67117d228d271de2eaae9e3c6fde2a3268ac58d2 Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Sun, 9 Feb 2014 12:03:36 +0100 Subject: [PATCH] OP-1149 change POW2 as POW2(0) led to undefined results --- flight/pios/common/pios_ms5611.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight/pios/common/pios_ms5611.c b/flight/pios/common/pios_ms5611.c index 7aaf6fcf7..3268289b4 100644 --- a/flight/pios/common/pios_ms5611.c +++ b/flight/pios/common/pios_ms5611.c @@ -32,7 +32,7 @@ #ifdef PIOS_INCLUDE_MS5611 -#define POW2(x) (2 << (x - 1)) +#define POW2(x) (1 << x) // TODO: Clean this up. Getting around old constant. #define PIOS_MS5611_OVERSAMPLING oversampling