Commit 8d689f8e authored by schneider's avatar schneider
Browse files

fix(rtc): subseconds is in 1/4096

parent 2bbf082b
......@@ -31,7 +31,7 @@ void epic_rtc_set_milliseconds(uint64_t milliseconds)
sec = milliseconds / 1000;
subsec = (milliseconds % 1000);
subsec *= 256;
subsec *= 4096;
subsec /= 1000;
while (RTC_Init(MXC_RTC, sec, subsec, NULL) == E_BUSY)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment