Skip to content

Commit dcd8c61

Browse files
ydamigosfabiobaltieri
authored andcommitted
drivers: sensor: hs400x: Fix measurement time
According to the datasheet, maximum conversion time for both humidity and temperature at 14 bits resolution is 1.7 ms. Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
1 parent 606b8ee commit dcd8c61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/sensor/renesas/hs400x/hs400x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ static int hs400x_sample_fetch(const struct device *dev, enum sensor_channel cha
8080

8181
/*
8282
* According to datasheet maximum time to make temperature and humidity
83-
* measurements is 33ms, add a little safety margin...
83+
* measurements is 1.7 ms, add a little safety margin...
8484
*/
85-
k_msleep(50);
85+
k_msleep(3);
8686

8787
rc = hs400x_read_sample(dev, &data->t_sample, &data->rh_sample);
8888
if (rc < 0) {

0 commit comments

Comments
 (0)