Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion components/sensors/humiture/aht20/aht20.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion components/sensors/humiture/aht20/idf_component.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 0 additions & 1 deletion components/sensors/humiture/aht20/priv_include/aht20_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */