1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1149 change POW2 as POW2(0) led to undefined results

This commit is contained in:
Alessio Morale 2014-02-09 12:03:36 +01:00
parent 1569881e94
commit 67117d228d

View File

@ -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