forked from FD-/RPiPlay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The existing NTP synchronization has a few issues. It only waits 3 milliseconds for a response from the iOS device, which is too short of a delay. Also, if it fails to send the NTP request for some reason, or it fails to receive the NTP response in time, it stops attempting NTP synchronization altogether. This commit attempts to address these problems. The NTP response time has been increased to 300 ms, and if we fail to send or receive an NTP packet, we will try again next time. The NTP socket is flushed prior to each request to ensure we don't read an older delayed response.
- Loading branch information
Showing
1 changed file
with
73 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters