Skip to content

Commit b234cc9

Browse files
authored
Merge pull request #91 from danbaker-projects/danbaker-projects-patch-1
Fix incorrect float return value from getTemperatureCompensation()
2 parents 987e4a5 + 6d76cd2 commit b234cc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_BME280.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ uint32_t Adafruit_BME280::sensorID(void) { return _sensorID; }
557557
* @returns the current temperature compensation value in degrees Celcius
558558
*/
559559
float Adafruit_BME280::getTemperatureCompensation(void) {
560-
return float(((t_fine_adjust * 5) >> 8) / 100);
560+
return float((t_fine_adjust * 5) >> 8) / 100.0;
561561
};
562562

563563
/*!

0 commit comments

Comments
 (0)