diff --git a/ESP32-IDF_BMP280/main/lm75.h b/ESP32-IDF_BMP280/main/lm75.h index 7edab9fb0..2839d7bb2 100644 --- a/ESP32-IDF_BMP280/main/lm75.h +++ b/ESP32-IDF_BMP280/main/lm75.h @@ -2,7 +2,7 @@ #define __LM75_H__ #define LM75_CHIP_ID (0x07) -#define LM75_I2C_ADDRESS1 (0x49) // BME280 Data sheet p. 32 +#define LM75_I2C_ADDRESS1 (0x49) #define BME280_I2C_ADDRESS2 (0x49) #define BME280_TEMPERATURE_REGISTER (0x00) diff --git a/ESP32-Rainmaker-Switch/main/bme280.c b/ESP32-Rainmaker-Switch/main/bme280.c index fd05ee823..bb49029ab 100644 --- a/ESP32-Rainmaker-Switch/main/bme280.c +++ b/ESP32-Rainmaker-Switch/main/bme280.c @@ -29,7 +29,7 @@ static esp_err_t bme280_get_id(i2c_cmd_handle_t command, uint8_t device_address) // Step 8. STOP i2c_master_stop(command); // Step 7. Read one byte of data from register - cmd_ret = i2c_master_cmd_begin(I2C_NUM_0, command, 1000 / portTICK_PERIOD_MS); + esp_err_t cmd_ret = i2c_master_cmd_begin(I2C_NUM_0, command, 1000 / portTICK_PERIOD_MS); i2c_cmd_link_delete(command); return cmd_ret;