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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/12134#discussion_r321098243">cpu/esp32/periph/i2c_hw.c</a>:</p>
<pre style='color:#555'>> +        return -ETIMEDOUT; \
+    }
+
+#define _i2c_return_on_error_write(dev) \
+    if (_i2c_bus[dev].results & I2C_ARBITRATION_LOST_INT_ENA) { \
+        LOG_TAG_DEBUG("i2c", "arbitration lost dev=%u\n", dev); \
+        _i2c_reset_hw (dev); \
+        __asm__ volatile ("isync"); \
+        return -EAGAIN; \
+    } \
+    else if (_i2c_bus[dev].results & I2C_ACK_ERR_INT_ENA) { \
+        LOG_TAG_DEBUG("i2c", "ack error dev=%u\n", dev); \
+        uint32_t _tx_fifo_cnt = _i2c_hw[dev].regs->status_reg.tx_fifo_cnt; \
+        _i2c_reset_hw (dev); \
+        __asm__ volatile ("isync"); \
+        if (_tx_fifo_cnt >= len) { \
</pre>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1301112" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/benpicco">@benpicco</a> I tried my best.</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/12134?email_source=notifications&email_token=ABE7WYFKED6WGERCJ2SNFK3QICTUDA5CNFSM4ISTSXZKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCDXDT3A#discussion_r321098243">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYEYHJ6WGSKIQ2JOTZLQICTUDANCNFSM4ISTSXZA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYB6XHPOMVZWDADT46LQICTUDA5CNFSM4ISTSXZKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCDXDT3A.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/12134?email_source=notifications\u0026email_token=ABE7WYFKED6WGERCJ2SNFK3QICTUDA5CNFSM4ISTSXZKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCDXDT3A#discussion_r321098243",
"url": "https://github.com/RIOT-OS/RIOT/pull/12134?email_source=notifications\u0026email_token=ABE7WYFKED6WGERCJ2SNFK3QICTUDA5CNFSM4ISTSXZKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCDXDT3A#discussion_r321098243",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>