Re: error: 'isnan' was not declared in this scope isnan(n);
Posted: Sun Jun 21, 2020 9:00 am
Unfortunately I cannot test it because of several compile issues (missing header file for nRF lib, not defined functions, etc).
But none of the errors was related to undeclared "isnan".
Can you post a simple sketch which shows the problem?
EDIT
I commented out all not existing functions and your sketch compiles error free, but with couple of warnings.
However, still no error related to undeclared isnan.
Even if I remove from the sketch the additional include of math.h and the corresponding using namespace line, still no error.
I checked that the file "EnvironmentCalculations.h" is correctly used by the library, and it is the case, and no error.
So I cannot reproduce your problem.
Make sure that you use the latest version from here: https://github.com/rogerclarkmelbourne/ ... ish_math.h in the respective local folder.
In the case your problem still persists, please post the complete output of the Arduino verbose build message.
But none of the errors was related to undeclared "isnan".
Can you post a simple sketch which shows the problem?
EDIT
I commented out all not existing functions and your sketch compiles error free, but with couple of warnings.
However, still no error related to undeclared isnan.
Even if I remove from the sketch the additional include of math.h and the corresponding using namespace line, still no error.
I checked that the file "EnvironmentCalculations.h" is correctly used by the library, and it is the case, and no error.
So I cannot reproduce your problem.
Make sure that you use the latest version from here: https://github.com/rogerclarkmelbourne/ ... ish_math.h in the respective local folder.
In the case your problem still persists, please post the complete output of the Arduino verbose build message.