Repository navigation
fix(teensy4): re-check isInUse after wait and verify encoded byte count in block clockless controller - #5503
Conversation
…nt in block clockless controller
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
Note
|
Memory usage (this PR vs. its merge base)Change in
|
Fixes item #14 from #5492.
Summary
FlexibleInlineBlockClocklessController::showPixels()(src/platforms/arm/teensy/teensy4_common/block_clockless_arm_mxrt1062.h):mData[i]and re-checkmData[i]->isInUse()afterdriver.waitForReady(), dropping the frame if any lane is still in use.pixels.mLen * bytesPerPixelwith overflow guard) afteriterator.writeWS2812(&data->getData()), dropping the entire multi-lane frame cleanly instead of enqueueing truncated/partial buffers on OOM.Verification
bash lint src/platforms/arm/teensy/teensy4_common/block_clockless_arm_mxrt1062.hpassed.