Skip to content
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

Lightweight thread refactoring #465

Merged
merged 12 commits into from
Oct 11, 2020
Merged

Conversation

geeksville
Copy link
Member

I'm cleaning up the threading in the app. This will allow a few things:

  • Simpler
  • Less FreeRTOS dependent (important for the port to Apache MyNewt - for low end NRF52s) and portduino
  • Lower power consumption because the top level arduino loop() will be sleeping typically for 100s to thousands of msecs
  • Lower latency - because we will be able to instantly wake for ble, button press or lora rx. Because there will no longer be the nasty 10ms sleep we had in loop() to save power. Instead there is a new InterruptableDelay class which allows sleeping and instantly waking if needed.

@geeksville geeksville merged commit 3d21794 into meshtastic:master Oct 11, 2020
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.

1 participant