diff --git a/src/SparkFunBME280.cpp b/src/SparkFunBME280.cpp index b1136c3..dac7ab1 100644 --- a/src/SparkFunBME280.cpp +++ b/src/SparkFunBME280.cpp @@ -366,7 +366,7 @@ void BME280::reset( void ) //Read all sensor registers as a burst. See BME280 Datasheet section 4. Data readout //tempScale = 0 for Celsius scale (default setting) //tempScale = 1 for Fahrenheit scale -void BME280::readAllMeasurements(BME280_SensorMeasurements *measurements, byte tempScale){ +void BME280::readAllMeasurements(BME280_SensorMeasurements *measurements, uint8_t tempScale){ uint8_t dataBurst[8]; readRegisterRegion(dataBurst, BME280_MEASUREMENTS_REG, 8); diff --git a/src/SparkFunBME280.h b/src/SparkFunBME280.h index f2dc15b..f169b2b 100644 --- a/src/SparkFunBME280.h +++ b/src/SparkFunBME280.h @@ -224,7 +224,7 @@ class BME280 //Software reset routine void reset( void ); - void readAllMeasurements(BME280_SensorMeasurements *measurements, byte tempScale = 0); + void readAllMeasurements(BME280_SensorMeasurements *measurements, uint8_t tempScale = 0); //Returns the values as floats. float readFloatPressure( void );