set_size reports success when resize fails #3

Open
opened 2026-10-30 16:40:39 +01:00 by simon · 0 comments
Owner

resize_channel() returns 0 when the framebuffer does not have sufficient space. ws2812drv_set_size() ignores this value and always returns num_leds. Thus the caller cannot see the failure.

`resize_channel()` returns 0 when the framebuffer does not have sufficient space. `ws2812drv_set_size()` ignores this value and always returns `num_leds`. Thus the caller cannot see the failure.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
simon/rp2040_ws2812_driver#3
No description provided.