[riot-notifications] [RIOT-OS/RIOT] drivers/dht: Bugfixes (#11876)

Sebastian Meiling notifications at github.com
Tue Jul 23 22:44:10 CEST 2019


smlng commented on this pull request.



>  
+/**
+ * @brief   Wait until the pin @p pin has level @p expect
+ *
+ * @param   pin     GPIO pin to wait for
+ * @param   expect  Wait until @p pin has this logic level
+ * @param   timeout Timeout in µs
+ *
+ * @retval  0       Success
+ * @retval  -1      Timeout occurred before level was reached
+ */
+static inline int _wait_for_level(gpio_t pin, int expect, unsigned timeout)

oops my bad, thought timeout is 1 second and not 1000 us, sry - leave as is with `unsigned` then.

-- 
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/11876#discussion_r306524091
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190723/41337791/attachment.htm>


More information about the notifications mailing list