Merge pull request #91 from danbaker-projects/danbaker-projects-patch-1

Fix incorrect float return value from getTemperatureCompensation()
This commit is contained in:
Limor "Ladyada" Fried 2021-05-17 14:02:15 -04:00 committed by GitHub
commit b234cc9ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ uint32_t Adafruit_BME280::sensorID(void) { return _sensorID; }
* @returns the current temperature compensation value in degrees Celcius
*/
float Adafruit_BME280::getTemperatureCompensation(void) {
return float(((t_fine_adjust * 5) >> 8) / 100);
return float((t_fine_adjust * 5) >> 8) / 100.0;
};
/*!