Referencing the library finitespace/BME280@^3.0.0 results an outdated sources

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!

I’d just do

lib_deps =
   https://github.com/finitespace/BME280/archive/refs/tags/3.0.0.zip

in the platformio.ini for now, the problem with the version / code mismatch for 3.0.0 may be solved by @ivankravets later.

1 Like

Please remove .pio folder from your project and perform pio system prune command.

Try to build the project again.