Skip to content

Commit 8186e6c

Browse files
kartbendkalowsk
authored andcommitted
drivers: sensor: sht3xd: fix threshold low clear command
Fix copy-paste error causing update to SHT3XD_CMD_WRITE_TH_LOW_CLEAR to be missing Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 8b8a51f commit 8186e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/sensirion/sht3xd/sht3xd_trigger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ int sht3xd_init_interrupt(const struct device *dev)
233233
return -EIO;
234234
}
235235

236-
if (sht3xd_write_reg(dev, SHT3XD_CMD_WRITE_TH_LOW_SET, 0) < 0) {
236+
if (sht3xd_write_reg(dev, SHT3XD_CMD_WRITE_TH_LOW_CLEAR, 0) < 0) {
237237
LOG_DBG("Failed to write threshold low clear value!");
238238
return -EIO;
239239
}

0 commit comments

Comments
 (0)