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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16678#discussion_r676690495">tests/driver_lm75/main.c</a>:</p>
<pre style='color:#555'>> +        lm75_poweron(dev);
+        /* since the temp is only updated every 100ms this is required to ensure the temp register updates for followup readings */
+        if(interval < 100) {
+            xtimer_msleep(100);
+        }
+        else xtimer_msleep(interval);
+        lm75_poweroff(dev);
+    #endif
+
+    return LM75_SUCCESS;
+}
+
+int main(void) {
+
+    /* Enable OS interrupt */
+    gpio_init_int(LM75_PARAM_INT, GPIO_IN_PU, GPIO_FALLING, __irq_os_cb, NULL);
</pre>
<p>better move this into the driver</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/16678#pullrequestreview-714959063">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYFU3YOYTV3DXBGROILTZV2OXANCNFSM5A4D3GTA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYCEVOHNQRAIJG6G673TZV2OXA5CNFSM5A4D3GTKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFKOWRVY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16678#pullrequestreview-714959063",
"url": "https://github.com/RIOT-OS/RIOT/pull/16678#pullrequestreview-714959063",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>