Hi Miroslav!
It would be good in general (rtc mode or not) to have control over STA_UNSYNC. To be raised at 1s or 2s acummulated error, independend of the kernel.
Could you add an option to force STA_UNSYNC when reaching a settable limit?
Regards,
Christoph
16 seconds is the maximum value that the kernel can keep as esterror
and maxerror. It would automatically set the STA_UNSYNC flag if the
application didn't set it. Normally, if the clock is well
synchronized, it takes a few days for that threshold to be reached.