Skip to content

Reduce RMT5 encoder logging bloat - #3902

Merged
zackees merged 1 commit into
masterfrom
fix/2977-rmt5-encoder-cold-logs
Aug 19, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/2977-rmt5-encoder-cold-logs

Conversation

@zackees

@zackees zackees commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Summary

  • demote RMT5 encoder timing and success diagnostics from warnings to debug logs
  • consolidate bytes/copy encoder creation failures in one noinline cold formatter
  • add the resolved FL_HAS_WARN gate so warning helpers compile out with FL_WARN

Verification

  • bash test log
  • bash test channel_driver_rmt
  • bash lint --cpp
  • git diff --check
  • /clud-review clean

Verification gap

  • bash compile esp32s3 --examples Blink was attempted three times. The first fbuild daemon disconnected while downloading tool-esptoolpy; subsequent cold dependency builds exceeded the 15-minute wrapper timeout without a FastLED source diagnostic.

Fixes #2977

Summary by CodeRabbit

  • New Features

    • Added the public FL_HAS_WARN logging availability flag.
  • Bug Fixes

    • Improved RMT encoder failure reporting while reducing successful-operation messages to debug level.
    • Standardized warning behavior for encoder creation failures.
  • Tests

    • Added validation ensuring the warning availability flag reports a boolean value.

@zackees
zackees merged commit 877d1b4 into master Aug 19, 2026
10 of 17 checks passed
@zackees
zackees deleted the fix/2977-rmt5-encoder-cold-logs branch August 19, 2026 02:50
@coderabbitai

coderabbitai Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: fe52f543-291d-4781-944e-3d10383b1154

📥 Commits

Reviewing files that changed from the base of the PR and between dd19c06 and fb44edc.

📒 Files selected for processing (3)
  • src/fl/log/log.h
  • src/platforms/esp/32/drivers/rmt/rmt_5/rmt5_peripheral_esp.cpp.hpp
  • tests/fl/log/log.hpp

📝 Walkthrough

Walkthrough

The logging header now exposes FL_HAS_WARN. RMT5 encoder failures use a shared warning helper. Timing and successful encoder messages use debug logging. Tests validate the warning gate value.

Changes

Warning logging changes

Layer / File(s) Summary
Public warning gate and validation
src/fl/log/log.h, tests/fl/log/log.hpp
FL_HAS_WARN aliases FASTLED_LOG_RUNTIME_ENABLED, guards FL_WARN, updates the literal-warning documentation, and is validated as 0 or 1.
RMT5 encoder logging flow
src/platforms/esp/32/drivers/rmt/rmt_5/rmt5_peripheral_esp.cpp.hpp
Encoder creation failures use a shared FL_HAS_WARN-guarded helper. Timing and successful-creation messages use debug logging. Error returns and cleanup remain unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

  • #2974: The changes modify ESP32 RMT5 logging sites and warning handling described by the issue.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/2977-rmt5-encoder-cold-logs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bloat: consolidate log sites in Rmt5EncoderImpl::initialize + extract esp-idf-error-wrap helper

1 participant