[16.0.x port] prevent glitches on -C3 by waiting for LEDs updates to finish#5691
[16.0.x port] prevent glitches on -C3 by waiting for LEDs updates to finish#5691softhack007 wants to merge 8 commits into
Conversation
…lly suspend interrupts (#5435) * adding strip.waitForLEDs(waitMS) function * wait for LEDs output to complete before file writing * wait before ESP.getFreeHeap() - main loop * wait before file close (upload) and before getFreeHeap() (json info) * avoid losing "trigger" events due to strip.suspend --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* use constants instead of raw timeouts * simplify usage - in many cases we don't need #ifdef any more * missed one "wait" on image_loader
comment should match real timeout
WalkthroughIntroduces ChangeswaitForLEDs API and call-site integration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
prevents flickering at startup
* space before comment * use isUpdating() - not strip.isUpdating() - in waitForLEDs()
getFreeHeapSize() can cause glitches.
|
@bigfella5000 this is the -C3 flicker fix, brought to |
16.0.0 port of #5435
temporary solution for LEDs glitches on RISC-V boards, as discussed in #5683
previous discussion see #5683 and #5688
Summary by CodeRabbit
Bug Fixes
Improvements