[riot-notifications] [RIOT-OS/RIOT] drivers/adcxx1c: improve error handling (#10526)

Vincent Dupont notifications at github.com
Fri Jan 11 17:19:26 CET 2019


vincent-d commented on this pull request.



> @@ -26,7 +26,9 @@
 
 static int read_adc(const void *dev, phydat_t *res)
 {
-    adcxx1c_read_raw((const adcxx1c_t *)dev, res->val);
+    if (adcxx1c_read_raw((const adcxx1c_t *)dev, res->val)) {

Done

-- 
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/10526#discussion_r247172495
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190111/f69690df/attachment-0001.html>


More information about the notifications mailing list