Skip to content

Simplify IR apply-to-all default macro - #15

Merged
KrX3D merged 2 commits into
compile_definesfrom
codex/fix-and-document-defines-in-wled.h
Feb 11, 2026
Merged

KrX3D merged 2 commits into
compile_definesfrom
codex/fix-and-document-defines-in-wled.h

Conversation

@KrX3D

@KrX3D KrX3D commented Feb 11, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Remove unnecessary compatibility/inversion logic and make the IR/ESP-NOW "apply to all selected segments" default straightforward and easy to reason about.

Description

  • Remove the #if defined(IR_DEFAULT_APPLY_TO_MAIN_SEGMENT_ONLY) && !defined(IR_DEFAULT_APPLY_TO_ALL_SELECTED) mapping and keep a single #ifndef IR_DEFAULT_APPLY_TO_ALL_SELECTED fallback that defines the macro as true, and initialize irApplyToAllSelected from IR_DEFAULT_APPLY_TO_ALL_SELECTED.

Testing

  • No automated tests were run.

Codex Task

@KrX3D
KrX3D merged commit 68f92c8 into compile_defines Feb 11, 2026
20 checks passed
@KrX3D
KrX3D deleted the codex/fix-and-document-defines-in-wled.h branch February 11, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant