Repository navigation
fix(channels): cache all-ready only when every driver reported READY (#5381) - #5425
Conversation
|
@coderabbitai review |
|
Caution Review failedThe pull request is closed. Note
|
| Layer / File(s) | Summary |
|---|---|
Poll readiness and regression test src/fl/channels/manager.cpp.hpp, tests/unit/fl/channels/manager.cpp |
poll now sets mAllReady based on whether every driver reports READY. The regression test checks that an ERROR state with empty error text does not seed the cache. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
- Issue 5381 concerns the all-ready cache behavior that this change corrects.
Possibly related PRs
- FastLED/FastLED#5424: This PR introduced the
mAllReadycache that this change updates.
Merge Risk: 
Minimal · up to 0e157
-
This fixes a cache bug where an ERROR with empty text could make the next frame skip polling a driver. A regression test covers it. No actionable merge risk remains.
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.
Memory usage (this PR vs. its merge base)Change in
|
Action not completed
|
Follow-up to #5424, from CodeRabbit's review there. Refs #5381, #5375.
DriverState(ERROR)has empty error text.poll()computed the all-ready cache fromfirstErrorplus the BUSY/DRAINING flags, so a text-less ERROR setmAllReady, and the nextonBeginFrame()skipped polling the failed driver. The cache now requires every driver'sresult.stateto be READY. The aggregate statepoll()returns is unchanged.Validation:
an ERROR without error text never seeds the all-ready cache #5381: RED on master in quick and--debug(manager.cpp:311: 1 == 2), GREEN after the fix in both.bash lintpasses.Summary by CodeRabbit