[riot-notifications] [RIOT-OS/RIOT] drivers: sht3x temperature and humidity sensor (#10012)
notifications at github.com
Sat Nov 17 15:05:34 CET 2018
gschorcht commented on this pull request.
> + return SHT3X_OK;
+static int _reset (sht3x_dev_t* dev)
+ ASSERT_PARAM (dev != NULL);
+ DEBUG_DEV("", dev);
+ * Sensor can only be soft resetted in idle mode. Therefore, we try to
+ * start a single shot measurement and wait for its completion. After
+ * that the sensor should be in idle mode. We don't check I2C errors
+ * at this moment.
+ _send_command(dev, SHT3X_MEASURE_CMD[sht3x_single_shot][sht3x_low]);
I have tried and tested, seems to work.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications