Skip to content

Conversation

@splch
Copy link
Contributor

@splch splch commented Jul 3, 2025

This PR refactors the buzzing functionality in the twenties app to enhance energy efficiency:

Key Improvements:

  • Simplifies and consolidates the logic determining active work hours (Mon–Fri, 8 am–6 pm).
  • Optimizes scheduling to avoid unnecessary checks outside working hours, significantly improving battery performance.
  • Renames variables for clearer readability (isWorkTime, LOOP_INTERVAL, BUZZ_INTERVAL).

@bobrippling
Copy link
Collaborator

LGTM, thanks!

@bobrippling bobrippling merged commit 166a3f4 into espruino:master Jul 4, 2025
1 check passed
@splch splch deleted the greener-twenties-v0.5 branch July 4, 2025 23:52
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.

2 participants