Skip to content

Commit 8419fb3

Browse files
committed
fix: remove incorrect check for CRC bit
1 parent 8160bf5 commit 8419fb3

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

components/sensors/humiture/aht20/aht20.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ esp_err_t aht20_read_temperature_humidity(aht20_dev_handle_t handle,
6969
ESP_RETURN_ON_ERROR(aht20_read_reg(handle, &status, 1), TAG, "I2C read error");
7070

7171
if ((status & BIT(AT581X_STATUS_Calibration_Enable)) &&
72-
(status & BIT(AT581X_STATUS_CRC_FLAG)) &&
7372
((status & BIT(AT581X_STATUS_BUSY_INDICATION)) == 0)) {
7473
ESP_RETURN_ON_ERROR(aht20_read_reg(handle, buf, 7), TAG, "I2C read error");
7574
ESP_RETURN_ON_ERROR((aht20_calc_crc(buf, 6) != buf[6]), TAG, "crc is error");

components/sensors/humiture/aht20/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2.0.0
1+
version: 2.0.1
22
description: I2C driver for AHT20 humidity and temperature sensor
33
issues: https://github.com/espressif/esp-iot-solution/issues
44
repository: git://github.com/espressif/esp-iot-solution.git

components/sensors/humiture/aht20/priv_include/aht20_reg.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@
1919

2020
#define AT581X_STATUS_CMP_INT (2) /* 1 --Out threshold range; 0 --In threshold range */
2121
#define AT581X_STATUS_Calibration_Enable (3) /* 1 --Calibration enable; 0 --Calibration disable */
22-
#define AT581X_STATUS_CRC_FLAG (4) /* 1 --CRC ok; 0 --CRC failed */
2322
#define AT581X_STATUS_MODE_STATUS (5) /* 00 -NOR mode; 01 -CYC mode; 1x --CMD mode */
2423
#define AT581X_STATUS_BUSY_INDICATION (7) /* 1 --Equipment is busy; 0 --Equipment is idle */

0 commit comments

Comments
 (0)