Accuracy data_time library

Dear Sir/Madam,

In the NRF date_time_ntp.c, the fraction of the NTP message is completely ignored in the line:

*date_time_ms = (int64_t)sntp_time.seconds * 1000;
Could you add the following to at least take the fraction into account.
*date_time_ms += (int64_t)(sntp_time.fraction / 1000)
 
Kind regards,
Sjors Hettinga
Parents Reply Children
No Data
Related