[riot-notifications] [RIOT-OS/RIOT] cpu/atmega_common: RTC: fix off-by-one second normalization & simplify rtc_get_time() (#16442)

benpicco notifications at github.com
Tue May 4 23:16:03 CEST 2021


@benpicco commented on this pull request.



> +    do {
+        before = TCNT2;
         *time = tm_now;
-    }
+    } while (before > TCNT2);

good catch! I'll apply the same fix in #16347

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16442#discussion_r626112974
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210504/1a3b1c99/attachment.htm>


More information about the notifications mailing list