Skip to content

Abortable Arduino delay() #3227

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

Closed
wants to merge 2 commits into from
Closed

Conversation

dok-net
Copy link
Contributor

@dok-net dok-net commented Sep 18, 2019

Currently, there is (seems to be?) no way to break out of the Arduino delay() equivalent implementation on ESP32 Arduino core.
This PR proposes a different FreeRTOS method of implementing task delay, that allows resuming the loop() task (or any other task using Arduino-style sketches with delay()).
Measured timings for very short delay values, that is 0, 1, 2µs, are identical to the replaced code.

@me-no-dev
Copy link
Member

Why do you want to abort delay that you called yourself? If you need to cancel a delay, then you should not use delay to begin with. Will not agree with this PR. Sorry

@dok-net
Copy link
Contributor Author

dok-net commented Sep 19, 2019

Verdict heard :-)

@dok-net dok-net closed this Sep 19, 2019
@dok-net dok-net deleted the abortdelay branch September 19, 2019 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants