Dear all,
When I refer the library BME280 version 3.0.0, the downloaded sources make gcc unhappy:
.pio\libdeps\usermod_bme280_d1_mini\BME280\src\BME280.cpp: In member function 'bool BME280::InitializeFilter()':
.pio\libdeps\usermod_bme280_d1_mini\BME280\src\BME280.cpp:85:1: error: no return statement in function returning non-void [-Werror=return-type]
85 | }
| ^
.pio\libdeps\usermod_bme280_d1_mini\BME280\src\BME280.cpp: In member function 'bool BME280::WriteSettings()':
.pio\libdeps\usermod_bme280_d1_mini\BME280\src\BME280.cpp:122:1: error: no return statement in function returning non-void [-Werror=return-type]
Further inspecting the source code for release 3.0.0 (commit 37a020c) I see that issue was fixed (i.e. return type for
BME280::InitializeFilter()
was changed to void
).
How can I push the “correct” sources to my project?
P.S. The link “Release notes” on this page points to https://github.com/finitespace/BME280/releases/tag/v3.0.0
but correct is https://github.com/finitespace/BME280/releases/tag/3.0.0
Thanks in advance!