Skip to content

Commit 16c3e72

Browse files
committed
fix for #69 revert 156a053
1 parent 616c729 commit 16c3e72

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Adafruit_BME280.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,7 @@ bool Adafruit_BME280::begin(uint8_t addr, TwoWire *theWire) {
7272
_i2caddr = addr;
7373
_wire = theWire;
7474
status = init();
75-
if ((!status) && (addr != BME280_ADDRESS)) {
76-
_i2caddr = BME280_ADDRESS;
77-
status = init();
78-
}
79-
if ((!status) && (addr != BME280_ADDRESS_ALTERNATE)) {
80-
_i2caddr = BME280_ADDRESS_ALTERNATE;
81-
status = init();
82-
}
75+
8376
return status;
8477
}
8578

0 commit comments

Comments
 (0)