BME280 I2C integration fixes

This commit is contained in:
Robert Olsson 2016-09-16 14:34:39 +02:00 committed by Antonio Lignan
parent 5c25ec4d11
commit dcbb5f6271
4 changed files with 13 additions and 1 deletions

View file

@ -224,5 +224,11 @@ i2c_probe(void)
probed |= I2C_CO2SA;
print_delim(p++, "CO2SA", del);
}
watchdog_periodic();
if(!i2c_start(I2C_BME280_ADDR)) {
i2c_stop();
probed |= I2C_BME280;
print_delim(p++, "BME280", del);
}
return probed;
}