You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/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)'
The text was updated successfully, but these errors were encountered:
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?
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.
@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.
/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)'
The text was updated successfully, but these errors were encountered: