Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHT4x often gives "i2cdev: Could not read from device [0x44 at 0]" error on measurement #598 fix #602

Merged
merged 1 commit into from
Feb 4, 2024
Merged
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
3 changes: 1 addition & 2 deletions components/sht4x/sht4x.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ static esp_err_t exec_cmd(sht4x_t *dev, uint8_t cmd, size_t delay_ticks, sht4x_r
{
I2C_DEV_TAKE_MUTEX(&dev->i2c_dev);
I2C_DEV_CHECK(&dev->i2c_dev, send_cmd_nolock(dev, cmd));
if (delay_ticks)
vTaskDelay(delay_ticks);
vTaskDelay(delay_ticks + 1);
I2C_DEV_CHECK(&dev->i2c_dev, read_res_nolock(dev, res));
I2C_DEV_GIVE_MUTEX(&dev->i2c_dev);

Expand Down
Loading