-
Notifications
You must be signed in to change notification settings - Fork 7.6k
timerRead() returns "previous" timer value #5462
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
Comments
Have you tried with latest stable core 1.0.6 ? |
Hi Jason2866, no didn't want to break other projects by updating the core. As I expected it to be a issue like "oh wait, before reading registers that depend on writing an other one, Or in other words, i expected it to look like:
But I did neither try this, nor am I the right one to judge - maybe its something totally different :) |
any update on this? |
Fixed in: #5498 |
ah, thanks for the fix |
Hardware:
Board: Heltec WiFi LoRa v2
Core Installation version: 1.0.4
IDE name: Arduino IDE
Flash Frequency: 80Mhz
PSRAM enabled: no
Computer OS: Windows 10
Description:
I am trying to get exact timing information on a Heltec WiFi LoRa v2 and FSK modulated signals.
For accuracy reasons i switched to timerBegin() / timerRead().
After switching I realized that my channel hopping code was not working properly anymore.
Did a lot of debugging and found out that timerRead() always returns the previous timer value, the value that i expected from the previous call.
Executing timerRead() twice (!) gives the exact timer value i expected.
Sketch:
Messages:
The text was updated successfully, but these errors were encountered: