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

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/13902#discussion_r431395020">cpu/atmega_common/periph/timer.c</a>:</p>
<pre style='color:#555'>> +    set_oneshot(tim, channel);
+
+    return 0;
+}
+
+int timer_set_periodic(tim_t tim, int channel, unsigned int value, unsigned flags)
+{
+    if (channel >= TIMER_CHANNELS) {
+        return -1;
+    }
+
+    if (flags & TIM_FLAG_RESET_ON_SET) {
+        ctx[tim].dev->CNT = 0;
+    }
+
+    ctx[tim].dev->OCR[channel] = (uint16_t)value;
</pre>
<p>I guess I better guard the whole block then to be safe.</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/13902#discussion_r431395020">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYARBVA6NSTUBJXBKXTRTVTKFANCNFSM4MLZHZVA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYFGT72POMWZM7LYUKLRTVTKFA5CNFSM4MLZHZVKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODEA4ROI.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/13902#discussion_r431395020",
"url": "https://github.com/RIOT-OS/RIOT/pull/13902#discussion_r431395020",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>