Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Improves default startup delay of SNTP for ChibiOS targets.
Motivation and Context
By default the delay was 30 seconds.
Given that
return NetworkHelper.SetupAndConnectNetwork(requiresDateTime: true, token: token);
Where all samples (and appropriate timeout) would be
CancellationTokenSource cs = new(10000); // ten seconds
It generally fails as the SNTP helper was not yet started yet.
It passes on a restart of the target because enough time has generally elapsed by the time the user has noticed and re-plugged the USB.
Although there are a number of improvements could be made, this fixes the most specific issue and also makes aware and fixes similar related to TI targets.
How Has This Been Tested?
Screenshots
Types of changes
Checklist