diff --git a/components/sensors/humiture/aht20/aht20.c b/components/sensors/humiture/aht20/aht20.c index 6645e0e143..f83dde264e 100644 --- a/components/sensors/humiture/aht20/aht20.c +++ b/components/sensors/humiture/aht20/aht20.c @@ -69,7 +69,6 @@ esp_err_t aht20_read_temperature_humidity(aht20_dev_handle_t handle, ESP_RETURN_ON_ERROR(aht20_read_reg(handle, &status, 1), TAG, "I2C read error"); if ((status & BIT(AT581X_STATUS_Calibration_Enable)) && - (status & BIT(AT581X_STATUS_CRC_FLAG)) && ((status & BIT(AT581X_STATUS_BUSY_INDICATION)) == 0)) { ESP_RETURN_ON_ERROR(aht20_read_reg(handle, buf, 7), TAG, "I2C read error"); ESP_RETURN_ON_ERROR((aht20_calc_crc(buf, 6) != buf[6]), TAG, "crc is error"); diff --git a/components/sensors/humiture/aht20/idf_component.yml b/components/sensors/humiture/aht20/idf_component.yml index 04ccec31ea..e1072db7ef 100644 --- a/components/sensors/humiture/aht20/idf_component.yml +++ b/components/sensors/humiture/aht20/idf_component.yml @@ -1,4 +1,4 @@ -version: 2.0.0 +version: 2.0.1 description: I2C driver for AHT20 humidity and temperature sensor issues: https://github.com/espressif/esp-iot-solution/issues repository: git://github.com/espressif/esp-iot-solution.git diff --git a/components/sensors/humiture/aht20/priv_include/aht20_reg.h b/components/sensors/humiture/aht20/priv_include/aht20_reg.h index 478c5148a0..f4fa19c896 100644 --- a/components/sensors/humiture/aht20/priv_include/aht20_reg.h +++ b/components/sensors/humiture/aht20/priv_include/aht20_reg.h @@ -19,6 +19,5 @@ #define AT581X_STATUS_CMP_INT (2) /* 1 --Out threshold range; 0 --In threshold range */ #define AT581X_STATUS_Calibration_Enable (3) /* 1 --Calibration enable; 0 --Calibration disable */ -#define AT581X_STATUS_CRC_FLAG (4) /* 1 --CRC ok; 0 --CRC failed */ #define AT581X_STATUS_MODE_STATUS (5) /* 00 -NOR mode; 01 -CYC mode; 1x --CMD mode */ #define AT581X_STATUS_BUSY_INDICATION (7) /* 1 --Equipment is busy; 0 --Equipment is idle */