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:
parent
1569881e94
commit
67117d228d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user