Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many arguments error for EnvironmentCalculations library method #1

Open
ivangayton opened this issue May 1, 2018 · 3 comments
Open

Comments

@ivangayton
Copy link

/home/hot-admin/Documents/git/elevation-barometry/sketch/BMP280I2C_running_stats/BMP280I2C_running_stats.ino: In function 'void BME280Data()':
BMP280I2C_running_stats:182: error: too many arguments to function 'float EnvironmentCalculations::Altitude(float, bool, float)'
altitude = EnvironmentCalculations::Altitude(pres, envAltUnit, referencePressure, temperature, envTempUnit);
^
In file included from /home/hot-admin/Documents/git/elevation-barometry/sketch/BMP280I2C_running_stats/BMP280I2C_running_stats.ino:3:0:
/home/hot-admin/Arduino/libraries/BME280/src/EnvironmentCalculations.h:50:9: note: declared here
float Altitude(
^
exit status 1
too many arguments to function 'float EnvironmentCalculations::Altitude(float, bool, float)'

@ivangayton
Copy link
Author

Dude!

We found the library indeed, but it is complaining that your code is sending too many arguments to that EnvironmentCalculations method. Can you have a look at the exact provenance of that library?

@hcwinsemius
Copy link
Owner

I am looking into this. I cannot reproduce this error. The error seems to suggest there are only 3 inputs allowed, while my version of BME280 allows for several more. I have even updated the BME280 library to the latest version, and I still have a working sketch.

Did you get this BME280 library?

https://github.com/finitespace/BME280

@per1234
Copy link

per1234 commented May 1, 2018

@hcwinsemius you must be using the development version of the library. The extra arguments were added since the latest release:
finitespace/BME280@73190b2
Often users will prefer to use a release version since the development version of a library may not be stable. It would be helpful if you documented exactly which version of the library your code is written for in the sketch comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants