Skip to content

Commit be74f5e

Browse files
committed
beclang
1 parent 6c21463 commit be74f5e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Adafruit_BMP085.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
#include "Adafruit_BMP085.h"
3232
#include <Adafruit_I2CDevice.h>
3333

34-
Adafruit_BMP085::Adafruit_BMP085() : i2c_dev (BMP085_I2CADDR) {}
34+
Adafruit_BMP085::Adafruit_BMP085() : i2c_dev(BMP085_I2CADDR) {}
3535

3636
bool Adafruit_BMP085::begin(uint8_t mode) {
3737
if (mode > BMP085_ULTRAHIGHRES)
3838
mode = BMP085_ULTRAHIGHRES;
3939
oversampling = mode;
4040

41-
if (! i2c_dev.begin()) {
41+
if (!i2c_dev.begin()) {
4242
return false;
4343
}
4444

@@ -289,7 +289,8 @@ uint16_t Adafruit_BMP085::read16(uint8_t a) {
289289
uint16_t ret;
290290

291291
// send 1 byte, reset i2c, read 2 bytes
292-
// we could typecast uint16_t as uint8_t array but would need to ensure proper endianness
292+
// we could typecast uint16_t as uint8_t array but would need to ensure proper
293+
// endianness
293294
i2c_dev.write_then_read(&a, 1, retbuf, 2, true);
294295

295296
// write_then_read uses uint8_t array

Adafruit_BMP085.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#ifndef ADAFRUIT_BMP085_H
2222
#define ADAFRUIT_BMP085_H
2323

24-
#include <Arduino.h>
2524
#include <Adafruit_I2CDevice.h>
25+
#include <Arduino.h>
2626

2727
#define BMP085_DEBUG 0 //!< Debug mode
2828

0 commit comments

Comments
 (0)