Skip to content

Prevent FastLED from hanging on 0-length pixel arrays - #1267

Merged
kriegsman merged 1 commit into
FastLED:masterfrom
ben-xo:bugfix/avr-clockless-trinket-hang-when-pixel-len-0
Jan 2, 2022
Merged

kriegsman merged 1 commit into
FastLED:masterfrom
ben-xo:bugfix/avr-clockless-trinket-hang-when-pixel-len-0

Conversation

@ben-xo

@ben-xo ben-xo commented Jul 29, 2021

Copy link
Copy Markdown
Contributor

Without this patch, a 0 length pixel array is treated as if it's 65535 long. Whilst few people will encounter this bug in simple applications, it comes up frequently when manipulating ranges of pixels with multiple PixelControllers.

Without this patch, a 0 length pixel array is treated as if it's 65535 long. Whilst few people will encounter this bug in simple applications, it comes up frequently when manipulating ranges of pixels with multiple PixelControllers.
@ben-xo

ben-xo commented Jul 29, 2021

Copy link
Copy Markdown
Contributor Author

Part two of the changes from my previous PR (#1265) which I'm separating out into separate pull requests, following from #1266

@kriegsman

Copy link
Copy Markdown
Member

Thanks, @ben-xo. Nice catch, and nice change.

@ben-xo
ben-xo deleted the bugfix/avr-clockless-trinket-hang-when-pixel-len-0 branch January 3, 2022 02:16
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.

2 participants