update
This commit is contained in:
@@ -38,14 +38,15 @@ void bme680_print_registers(bme680_handle_t handle)
|
||||
ESP_LOGI(TAG_BME, "Control Gas 1 (0x%02x): %s", ctrl_gas1_reg.reg, uint8_to_binary(ctrl_gas1_reg.reg));
|
||||
}
|
||||
|
||||
void bme680b_init() {
|
||||
esp_err_t bme680b_init() {
|
||||
// init device
|
||||
bme680_init(i2c0_bus_hdl, &BME680_DEV_CFG, &BME680_DEV_HANDLE);
|
||||
esp_err_t ret = bme680_init(i2c0_bus_hdl, &BME680_DEV_CFG, &BME680_DEV_HANDLE);
|
||||
if (BME680_DEV_HANDLE == NULL)
|
||||
{
|
||||
ESP_LOGE(TAG_BME, "bme680 handle init failed");
|
||||
} else {
|
||||
bme680_print_registers(BME680_DEV_HANDLE);
|
||||
}
|
||||
return ret;
|
||||
|
||||
}
|
Reference in New Issue
Block a user