Skip to content
Snippets Groups Projects
Commit 8efa898a authored by fxk8y's avatar fxk8y :spider:
Browse files

fix: allow other i2c addresses

parent 74ace071
No related branches found
No related tags found
No related merge requests found
......@@ -342,7 +342,7 @@ esp_err_t BME280::init(gpio_num_t sdaPin, gpio_num_t clkPin) {
}
i2c.setDebug(false);
i2c.init(BME280_ADDRESS, sdaPin, clkPin);
i2c.init(i2c.getAddress(), sdaPin, clkPin);
_sensor_id = readChipId();
if (_sensor_id != 0x60) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment