forked from things-nyc/arduino-lmic
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
delayMicrosoconds() is not accurate on some platforms #508
Labels
Comments
This was a big contributor to the problems seen in #442. |
Merged
bertrik
added a commit
to bertrik/arduino-lmic
that referenced
this issue
Jan 29, 2020
This reverts commit 306330f.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hal_waitUntil()
is relied upon to wait until the time has certainly been reached. But it doesn't check, it just depends ondelayMicroseconds()
... which isn't accurate at least on MCCI's STM32 BSP. This is not a super-useful optimization; better to just usedelta_time()
and loop. A little more quantization noise, but much better to be a little late than way early.The text was updated successfully, but these errors were encountered: