Skip to content

Non-blocking LED flashing with slow error codes and meter-LED suppression - #1201

Merged
gskjold merged 1 commit into
mainfrom
feature/led-error-codes
Jun 12, 2026
Merged

gskjold merged 1 commit into
mainfrom
feature/led-error-codes

Conversation

@gskjold

@gskjold gskjold commented Jun 12, 2026

Copy link
Copy Markdown
Member

Improves the red error-code LED so customers can reliably distinguish the 1/2/3-flash codes.

  • Replaces the blocking ledBlink() (delay-based, stalled loop()) with a non-blocking ledFlash()/ledLoop() state machine.
  • Slow, well-spaced flashes for error codes (250ms on / 400ms off) so 1/2/3 are easy to count; fast flashes for everything else (boot self-test, data-received blip) via ledFlashBlocking() for the pre-loop boot paths.
  • On hardware with an LED-disable GPIO, the hardwired meter-activity LED is forced off for the duration of an error burst, then restored — so error codes aren't visually mixed with meter blinks.

Builds: esp32 + esp8266 pass.

…sion

Replace blocking ledBlink() with a non-blocking ledFlash()/ledLoop() state
machine so the error indication no longer stalls loop(). Error codes now use
slow, well-spaced pulses (easy to count 1/2/3) while other blinks stay fast;
boot-time/factory-reset blinks use a thin blocking wrapper since they run
before loop() drives ledLoop().

On hardware with an LED-disable GPIO, the hardwired meter-activity LED is now
forced off for the duration of an error burst and restored when it ends, so
the error code isn't visually mixed with meter-activity blinks.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown

🔧 PR Build Artifacts

Version: b1b289f

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

@gskjold
gskjold merged commit 6920dfa into main Jun 12, 2026
7 checks passed
@gskjold
gskjold deleted the feature/led-error-codes branch June 12, 2026 10:02
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