Skip to content

Commit bbe6679

Browse files
committed
Include math.h
SparkFunBME280.cpp uses math functions pow, log and log10. This produces errors such as "pow was not declared in this scope". Found this while packaging this library for RIOT-OS. The library works with Arduino because math.h is included somewhere else. But I think it's better or more correct to include the headers for the functions used. Fixes sparkfun#48
1 parent 9e01070 commit bbe6679

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SparkFunBME280.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Distributed as-is; no warranty is given.
2020
******************************************************************************/
2121
//See SparkFunBME280.h for additional topology notes.
2222

23+
#include <math.h>
2324
#include "SparkFunBME280.h"
2425

2526
//****************************************************************************//

0 commit comments

Comments
 (0)