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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11929#discussion_r308466984">drivers/at24cxxx/at24cxxx.c</a>:</p>
<pre style='color:#555'>> +
+    _position_to_address_words(buffer, pos);
+
+    buffer[sizeof(buffer) - 1] = data;
+
+    int check;
+
+    check = i2c_write_bytes(dev->params.i2c, dev->params.dev_addr, buffer,
+                            sizeof(buffer), 0);
+    DEBUG("write_byte check: %d\n", check);
+    if (check < 0) {
+        //check is a negative errno value
+        return check;
+    }
+
+    xtimer_usleep(AT24CXXX_MAX_WRITE_CYCLE * US_PER_MS);
</pre>
<p>I'd say a 1ms delay between each polling wold be a possible compromise. What I like about it is that we could do away with a device specific constant and have it 'just work' with any EEPROM than expects a different delay, be it longer or shorter.</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/11929?email_source=notifications&email_token=ABE7WYDW4AXQDQE5AP4DE4DQB5WTVA5CNFSM4IHRRDRKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB75IQMI#discussion_r308466984">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYHGBY4Q2OYNKNHUI63QB5WTVANCNFSM4IHRRDRA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYCUDPYFOENOCZQJEA3QB5WTVA5CNFSM4IHRRDRKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB75IQMI.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/11929?email_source=notifications\u0026email_token=ABE7WYDW4AXQDQE5AP4DE4DQB5WTVA5CNFSM4IHRRDRKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB75IQMI#discussion_r308466984",
"url": "https://github.com/RIOT-OS/RIOT/pull/11929?email_source=notifications\u0026email_token=ABE7WYDW4AXQDQE5AP4DE4DQB5WTVA5CNFSM4IHRRDRKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB75IQMI#discussion_r308466984",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>