You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @machta
Thank you for reporting the issue.
Yes, as you mentioned since both SntpGetTime_t and SntpSetTime_t internally call clock_gettime and clock_settime which have a return type , it is possible to define them as this
But since this will be a breaking change for the applications which use this library, we are removing the comment in this PR and will add this to our queue to improve later. You can also always contribute to the library ! We shall be happy to review it.
The doc comment for
SntpGetTime_t
says "@returntrue
if ...":coreSNTP/source/include/core_sntp_client.h
Line 104 in 40d914a
But the function returns
void
:coreSNTP/source/include/core_sntp_client.h
Line 107 in 40d914a
But it doesn't seem like a bad idea. Is there really no way to idicate failure from
SntpGetTime_t
or fromSntpSetTime_t
?The text was updated successfully, but these errors were encountered: