Merge pull request #91 from danbaker-projects/danbaker-projects-patch-1
Fix incorrect float return value from getTemperatureCompensation()
This commit is contained in:
commit
b234cc9ca8
|
|
@ -557,7 +557,7 @@ uint32_t Adafruit_BME280::sensorID(void) { return _sensorID; }
|
||||||
* @returns the current temperature compensation value in degrees Celcius
|
* @returns the current temperature compensation value in degrees Celcius
|
||||||
*/
|
*/
|
||||||
float Adafruit_BME280::getTemperatureCompensation(void) {
|
float Adafruit_BME280::getTemperatureCompensation(void) {
|
||||||
return float(((t_fine_adjust * 5) >> 8) / 100);
|
return float((t_fine_adjust * 5) >> 8) / 100.0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue