<p><b>@skullbox305</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/10983#discussion_r260733853">tests/driver_ph_oem/main.c</a>:</p>
<pre style='color:#555'>> +
+/* off by default, so it won't reset your previous calibration */
+#define CALIBRATION_TEST_ENABLED    (false)
+
+static ph_oem_t dev;
+
+static void interrupt_pin_cb(void *arg)
+{
+    puts("\n[IRQ - Reading done]");
+
+    /* stop pH sensor from taking further readings*/
+    ph_oem_set_device_state(&dev, PH_OEM_STOP_READINGS);
+
+    /* reset interrupt pin in case of falling or rising flank */
+    if (dev.params.irq_option != PH_OEM_IRQ_BOTH) {
+        ph_oem_reset_interrupt_pin(&dev);
</pre>
<p>You are right, haven't thought about that. I added an event queue which gets claimed from a dedicated thread that loops the event queue. An event will be posted in the interrupt callback.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/10983#discussion_r260733853">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AEn7YBt9HlHT6I_sx6K8bIKrchrlMKFPks5vRn_TgaJpZM4azXyV">mute the thread</a>.<img src="https://github.com/notifications/beacon/AEn7YEifKuHoCTCSf2E6VZBuPGxk3eVJks5vRn_TgaJpZM4azXyV.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/RIOT-OS/RIOT","title":"RIOT-OS/RIOT","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/RIOT-OS/RIOT"}},"updates":{"snippets":[{"icon":"PERSON","message":"@skullbox305 commented on #10983"}],"action":{"name":"View Pull Request","url":"https://github.com/RIOT-OS/RIOT/pull/10983#discussion_r260733853"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/10983#discussion_r260733853",
"url": "https://github.com/RIOT-OS/RIOT/pull/10983#discussion_r260733853",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>