Skip to content

Commit b848cb2

Browse files
committed
https://github.com/adafruit/Adafruit_BME280_Library/issues/2
1 parent 3c2e13b commit b848cb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Adafruit_BME280.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ uint8_t Adafruit_BME280::read8(byte reg)
128128
Wire.endTransmission();
129129
Wire.requestFrom((uint8_t)_i2caddr, (byte)1);
130130
value = Wire.read();
131-
Wire.endTransmission();
131+
132132
} else {
133133
if (_sck == -1)
134134
SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0));
@@ -157,7 +157,7 @@ uint16_t Adafruit_BME280::read16(byte reg)
157157
Wire.endTransmission();
158158
Wire.requestFrom((uint8_t)_i2caddr, (byte)2);
159159
value = (Wire.read() << 8) | Wire.read();
160-
Wire.endTransmission();
160+
161161
} else {
162162
if (_sck == -1)
163163
SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0));

0 commit comments

Comments
 (0)