Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bbe6679

Browse files
committedOct 24, 2020
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 #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

Lines changed: 1 addition & 0 deletions
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)
Please sign in to comment.