adafruit / Adafruit_BME280_Library

Arduino Library for BME280 sensors
Other
328 stars 301 forks source link

Inaccessible class member functions #86

Closed tho1010 closed 3 years ago

tho1010 commented 4 years ago

are not accessable from a Sketch and generate a compiler error: 'class Adafruit BME280' has no member named 'getTemperatureCompensation' Despite the fact, that this member is explicitely specified in Adafruit_BME280.cpp and referenced in the public section of Adafruit_BME280.h

Maybe the compiled library code is not identical to the documented code.

ladyada commented 4 years ago

@AgentZombie can help you with that

jasonmf commented 4 years ago

When I submitted the PR it didn't occur to me that the version might need to be bumped in library.properties. Before and after my changes are both 2.0.2. Testing it on a fresh project in platformio shows the issue described unless I specify the dependency as the repo instead of the name.

I'm not C++ savvy and I'm new with MCU dev. My best guess is that library.properties needs the version bumped to 2.0.3. Can someone more experienced weigh in?

caternuson commented 4 years ago

Yah, looks like it just needs a version bump and a release.

ladyada commented 4 years ago

we do a sweep once a week and bump old libraries - @siddacious will get to it shortly!

siddacious commented 3 years ago

released!