We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi,
TimerLib.clearTimer();
no longer works in 1.6.5. I have tried it with the below 2 sample programs. The test devices are ESP32.
clearTimer() works on version 1.6.4.
clearTimer()
I have tried with both setInterval and setTimeout.
Example 1 (setInterval)
#include "Arduino.h" #include "uTimerLib.h" volatile unsigned long int prevMillis = 0; volatile unsigned long int actMillis = 0; void timed_function() { Serial.println(actMillis - prevMillis); prevMillis = actMillis; TimerLib.clearTimer(); } void setup() { Serial.begin(115200); Serial.println("Timer started!"); TimerLib.setInterval_s(timed_function, 2); prevMillis = millis(); } void loop() { actMillis = millis(); }
Example 2 (setTimeout)
#include "Arduino.h" #include "uTimerLib.h" volatile unsigned long int prevMillis = 0; volatile unsigned long int actMillis = 0; void timed_function() { Serial.println(actMillis - prevMillis); TimerLib.clearTimer(); } void setup() { Serial.begin(115200); Serial.println("Timer started!"); TimerLib.setTimeout_s(timed_function, 2); prevMillis = millis(); } void loop() { actMillis = millis(); }
The text was updated successfully, but these errors were encountered:
Fixed! Created 1.6.6 release.
Sorry, something went wrong.
Wow, fantastic! Thank you.
I just was on the computer and that notification arrived; it was quite easy... ;-)
Right place at the right time! ... :-D Cool, thanks once again.
No branches or pull requests
hi,
TimerLib.clearTimer();
no longer works in 1.6.5. I have tried it with the below 2 sample programs. The test devices are ESP32.
clearTimer()
works on version 1.6.4.I have tried with both setInterval and setTimeout.
Example 1 (setInterval)
Example 2 (setTimeout)
The text was updated successfully, but these errors were encountered: