File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,7 @@ uint32_t Adafruit_BME280::sensorID(void) { return _sensorID; }
544
544
* Returns the current temperature compensation value in degrees Celcius
545
545
* @returns the current temperature compensation value in degrees Celcius
546
546
*/
547
- float Adafruit_BME280::getTemperatureAdjustment (void ) {
547
+ float Adafruit_BME280::getTemperatureCompensation (void ) {
548
548
return float (((t_fine_adjust*5 )>>8 )/100 );
549
549
};
550
550
@@ -553,7 +553,7 @@ float Adafruit_BME280::getTemperatureAdjustment(void) {
553
553
* temperature is used in pressure and humidity readings.
554
554
* @params adjustment Value to be added to each tempature reading in Celcius
555
555
*/
556
- void Adafruit_BME280::setTemperatureAdjustment (float adjustment) {
556
+ void Adafruit_BME280::setTemperatureCompensation (float adjustment) {
557
557
// convert the value in C into and adjustment to t_fine
558
558
t_fine_adjust = ((int32_t (adjustment * 100 ) << 8 )) / 5 ;
559
559
};
Original file line number Diff line number Diff line change @@ -234,8 +234,8 @@ class Adafruit_BME280 {
234
234
float seaLevelForAltitude (float altitude, float pressure);
235
235
uint32_t sensorID (void );
236
236
237
- float getTemperatureAdjustment (void );
238
- void setTemperatureAdjustment (float );
237
+ float getTemperatureCompensation (void );
238
+ void setTemperatureCompensation (float );
239
239
240
240
Adafruit_Sensor *getTemperatureSensor (void );
241
241
Adafruit_Sensor *getPressureSensor (void );
You can’t perform that action at this time.
0 commit comments