Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@DedeHai
Copy link
Collaborator

@DedeHai DedeHai commented May 19, 2025

virtual strip index is added even if strip is 1D. this change fixes FX using virtual strips not working when WLED_DISABLE_2D is used.

I recommend waiting to merge this until segment layering PR is merged.

Summary by CodeRabbit

  • Bug Fixes
    • Improved handling of pixel indices to ensure correct color assignment even when 2D support is disabled. This change prevents unexpected behavior when setting pixel colors with out-of-range indices.

virtual strip index is added even if strip is 1D. this change fixes FX using virtual strips not working when WLED_DISABLE_2D is used.
@coderabbitai

This comment was marked as resolved.

@DedeHai
Copy link
Collaborator Author

DedeHai commented May 19, 2025

this fix does NOT need porting to 0.15 as the bug this PR fixes was introduced in 0.16

@DedeHai DedeHai merged commit a53baa9 into wled:main Jun 19, 2025
21 checks passed
@DedeHai DedeHai deleted the virtualstrip_fix branch June 19, 2025 14:57
@blazoncek
Copy link
Contributor

#ifndef WLED_DISABLE_2D
  #define indexToVStrip(index, stripNr) ((index) | (int((stripNr)+1)<<16))
#else
  #define indexToVStrip(index, stripNr) (index) // since stripNr will never be > 0
#endif

Would have solved the issue as well.

blazoncek added a commit that referenced this pull request Jul 4, 2025
- adds ability to configure variable number of buttons during runtime
- fixes #4692
netmindz pushed a commit to netmindz/WLED-MM that referenced this pull request Jul 6, 2025
virtual strip index is added even if strip is 1D. this change fixes FX using virtual strips not working when WLED_DISABLE_2D is used.
@coderabbitai coderabbitai bot mentioned this pull request Jul 6, 2025
DedeHai pushed a commit that referenced this pull request Nov 27, 2025
* Variable button count (up to 32)
- adds ability to configure variable number of buttons during runtime
- fixes #4692
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.