Skip to content

follow-up: document empty Channel::name() when logging is compiled out from #2943 #3948

Closed

Description

@zackees

Source

CodeRabbit suggestion

Document empty ch.name() in release builds when FASTLED_LOG_RUNTIME_ENABLED is off. Channel::makeName() returns {} in that build mode, but the Channels event-listener example prints ch.name().c_str() without warning it may be empty; update the docs and recommend setting ChannelConfig::mName when stable names are needed.

Why this matters

Channel::name() is public and event callbacks expose it. On current master, an unnamed ChannelConfig produces an empty name whenever runtime logging is compiled out. Users may otherwise treat the auto-generated Channel_<id> value as stable across debug and release builds.

RED -> GREEN acceptance criteria

  • RED evidence: Channel::makeName() returns {} under !FASTLED_LOG_RUNTIME_ENABLED, while src/fl/channels/README.md does not document that build-dependent behavior.
  • GREEN: document the Channel::makeName() / Channel::name() contract in src/fl/channels/README.md, explicitly naming FASTLED_LOG_RUNTIME_ENABLED and ChannelConfig::mName.
  • GREEN: update the event-listener example or adjacent prose to show that callers needing a stable name must supply ChannelConfig::mName; keep the existing explicitly named example valid.
  • Verify the documentation renders cleanly and repository documentation lint passes.

Activity

  1. added a commit that references this issue on Aug 20, 2026
    7c2d03f
  2. moved this from Triage to Done in FastLED Trackeron Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions