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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16333#discussion_r642391553">drivers/hm3301/hm3301.c</a>:</p>
<pre style='color:#555'>> +        .nc_pm_5    = (buf[24] << 8) | buf[25],
+        .nc_pm_10   = (buf[26] << 8) | buf[27],
+    };
+    memcpy(data, &tmp, sizeof(hm3301_data_t));
+
+    return 0;
+}
+
+void hm3301_reset(hm3301_t *dev)
+{
+    if (gpio_is_valid(dev->params.reset_pin)) {
+        gpio_clear(dev->params.reset_pin);
+#if IS_USED(MODULE_ZTIMER_USEC)
+        ztimer_sleep(ZTIMER_USEC, HM3301_RESET_TIME_US);
+#else
+        for (uint32_t i = 0; i < HM3301_RESET_TIME_US * (CLOCK_CORECLOCK / US_PER_SEC) ; i++) {
</pre>
<p>maybe also define an xtimer fallback‚Ķ</p>
<p>Also mind you that each loop iteration is at least 3 instructions, so this will be more like <code>3 * HM3301_RESET_TIME_US</code></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/16333#discussion_r642391553">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYD7J4RFXXPZEDULNILTQNQ65ANCNFSM4263WXNQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYGLH7LLNJFKAPK2DUTTQNQ65A5CNFSM4263WXN2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFAILPVI.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/16333#discussion_r642391553",
"url": "https://github.com/RIOT-OS/RIOT/pull/16333#discussion_r642391553",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>