[riot-notifications] [RIOT-OS/RIOT] drivers: add support for SHT2x (I2C temp and humidity sensor) (#10750)

Peter Kietzmann notifications at github.com
Mon Feb 4 11:55:48 CET 2019


PeterKietzmann commented on this pull request.



> +
+/**
+ * @brief       The number of retries when doing a polled measurement
+ */
+#define MAX_RETRIES         20
+
+/**
+ * @brief       A few helper macros
+ */
+#define BUS                 (dev->params.i2c_dev)
+#define ADDR                (dev->params.i2c_addr)
+#define MODE                (dev->params.measure_mode)
+#define CRC                 (dev->params.is_crc_enabled)
+
+typedef enum {
+    eTempHoldCmd        = 0xE3,     /**< trigger temp measurement, hold master */

>From our [coding conventions](https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions#naming):"Do NOT use CamelCase. Function, variable and file names as well as enums, structs or typedefs are written in lowercase with underscores."

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10750#pullrequestreview-199528675
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190204/3f1e4365/attachment.html>


More information about the notifications mailing list