arduino-libraries / Arduino_BMI270_BMM150

GNU Lesser General Public License v2.1
19 stars 13 forks source link

Missing implementation of getTemperature() #27

Open simonmicro opened 1 year ago

simonmicro commented 1 year ago

The library declares a BoschSensorClass::getTemperature() function:

https://github.com/arduino-libraries/Arduino_BMI270_BMM150/blob/aabdaf680567cffc1721ffbd0baf76cfc7dcd62a/src/BoschSensorClass.h#L67

But if you try to use it:

#include <Arduino_BMI270_BMM150.h>
void setup() {
  IMU.getTemperature();
}
void loop() {}

compilation fails due to the declared function not being implemented:

C:\Users\per\AppData\Local\Temp\.arduinoIDE-unsaved2023718-18988-8022i1.jjmfp\sketch_aug18a/sketch_aug18a.ino:3: undefined reference to `BoschSensorClass::getTemperature()'

I see from its datasheet that the sensor does support temperature readings.

aentinger commented 1 year ago

Reopening, see https://github.com/arduino-libraries/Arduino_BMI270_BMM150/pull/28#issuecomment-1709867220 .