Skip to content

Fix symbol conflict on newer ESP-IDF. - #2195

Merged
zackees merged 1 commit into
FastLED:masterfrom
robertlipe:master
Mar 12, 2026
Merged

zackees merged 1 commit into
FastLED:masterfrom
robertlipe:master

Conversation

@robertlipe

@robertlipe robertlipe commented Mar 12, 2026 •

Copy link
Copy Markdown
Contributor

Allows compilation on newer ESP-IDF without symbol collision.

Summary by CodeRabbit

  • Bug Fixes
    • Improved USB connection detection reliability for ESP32 devices with enhanced support across different SDK versions.

@coderabbitai

coderabbitai Bot commented Mar 12, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 028b0dad-0532-44c4-8c95-d6fb44569867

📥 Commits

Reviewing files that changed from the base of the PR and between 928cd5d and 83de1dd.

📒 Files selected for processing (1)
  • src/platforms/esp/32/drivers/usb_serial_jtag_esp32_idf.hpp

📝 Walkthrough

Walkthrough

The UsbSerialJtagEsp32::isConnected function is modified to conditionally branch on ESP_IDF_VERSION, using native API for version 5.3.0 and above while falling back to true for older versions.

Changes

Cohort / File(s) Summary
Version-conditional USB connectivity check
src/platforms/esp/32/drivers/usb_serial_jtag_esp32_idf.hpp
Added ESP_IDF_VERSION branching in isConnected() to call usb_serial_jtag_is_connected() for IDF ≥5.3.0, with fallback to true for older versions.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A version check hops into place,
Five-point-three takes the race,
Older paths still find their way,
Connected or not—hip hip hooray! 🐇

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

@zackees
zackees merged commit 0e49266 into FastLED:master Mar 12, 2026
9 of 61 checks passed
@zackees

zackees commented Mar 12, 2026

Copy link
Copy Markdown
Member

Thank you for your contribution @robertlipe!

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