Skip to content

Commit

Permalink
clang
Browse files Browse the repository at this point in the history
  • Loading branch information
sellensr committed Nov 29, 2021
1 parent 663e7c8 commit 75afef3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Adafruit_BMP280.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void Adafruit_BMP280::setSampling(sensor_mode mode,
sensor_sampling pressSampling,
sensor_filter filter,
standby_duration duration) {
if(!_sensorID)
if (!_sensorID)
return; // begin() not called yet
_measReg.mode = mode;
_measReg.osrs_t = tempSampling;
Expand Down Expand Up @@ -245,7 +245,7 @@ void Adafruit_BMP280::readCoefficients() {
*/
float Adafruit_BMP280::readTemperature() {
int32_t var1, var2;
if(!_sensorID)
if (!_sensorID)
return 0.0; // begin() not called yet

int32_t adc_T = read24(BMP280_REGISTER_TEMPDATA);
Expand Down Expand Up @@ -273,7 +273,7 @@ float Adafruit_BMP280::readTemperature() {
*/
float Adafruit_BMP280::readPressure() {
int64_t var1, var2, p;
if(!_sensorID)
if (!_sensorID)
return 0.0; // begin() not called yet

// Must be done first to get the t_fine variable set up
Expand Down Expand Up @@ -358,7 +358,7 @@ float Adafruit_BMP280::waterBoilingPoint(float pressure) {
/*
void Adafruit_BMP280::takeForcedMeasurement()
{
if(!_sensorID)
if (!_sensorID)
return; // begin() not called yet
// If we are in forced mode, the BME sensor goes back to sleep after each
// measurement and we need to set it to forced mode once at this point, so
Expand Down

0 comments on commit 75afef3

Please sign in to comment.