[riot-notifications] [RIOT-OS/RIOT] drivers/ph_oem: support for Atlas Scientific pH OEM sensor (#10983)

Igor Knippenberg notifications at github.com
Sat Feb 23 22:51:13 CET 2019


skullbox305 commented on this pull request.



> +    }
+    i2c_release(I2C);
+
+    return PH_OEM_OK;
+}
+
+int ph_oem_start_new_reading(const ph_oem_t *dev)
+{
+    if (ph_oem_set_device_state(dev, PH_OEM_TAKE_READINGS) < 0) {
+        return PH_OEM_WRITE_ERR;
+    }
+
+    /* if interrupt pin undefined, poll till new reading was taken */
+    if (dev->params.interrupt_pin == GPIO_UNDEF) {
+        if (ph_oem_new_reading_available(dev) < 0) {
+            return PH_OEM_READ_WRITE_ERR;

I removed this error code and added the the actual error reason

-- 
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/10983#discussion_r259594492
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190223/2bc94f80/attachment.html>


More information about the notifications mailing list