Skip to content

docs(esp8266): correct the Input-mode open-drain comment (#3735 follow-up) - #3788

Merged
zackees merged 1 commit into
masterfrom
fix/3735-followup-opendrain-comment
Jul 31, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/3735-followup-opendrain-comment

Conversation

@zackees

@zackees zackees commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #3787.

CodeRabbit correctly flagged that the Input-mode comment claimed open-drain was disabled, while the code writes | (1 << GPCD) — which enables it. I pushed the fix as ab65604f21 and replied on that thread saying it was fixed, but #3787 had already merged a few seconds earlier, so the commit never landed. Re-landing it here so the record matches reality.

Comment-only; the register write is unchanged and matches the core's wiring_digital.cpp, which sets the same bit for a plain INPUT. The comment now says so explicitly, to stop a future reader 'fixing' the code to match the old wrong comment.

Verified: the affected TU still compiles clean against the real 3.1.2 core headers with the xtensa toolchain, and the six #3735 static assertions still hold.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Clarified the documented behavior of ESP8266 input-mode configuration, including interrupt-field clearing and open-drain support.

GPCD=1 enables open-drain; the comment claimed it was disabled. The register
write is unchanged and matches the core's wiring_digital.cpp, which sets the
same bit for a plain INPUT. Comment-only.

Co-Authored-By: Claude <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 89712e4a-7b35-4d59-83b1-870b50380fef

📥 Commits

Reviewing files that changed from the base of the PR and between 324d14a and bfe711c.

📒 Files selected for processing (1)
  • src/platforms/esp/8266/pin_esp8266_native.hpp

📝 Walkthrough

Walkthrough

The ESP8266 pinMode input-mode comment now states that GPCD=1 enables open-drain and matches the Arduino core's plain INPUT behavior.

Changes

ESP8266 input-mode documentation

Layer / File(s) Summary
Update input-mode comment
src/platforms/esp/8266/pin_esp8266_native.hpp
The comment now documents that GPCD=1 enables open-drain and clears the interrupt field for plain INPUT behavior.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the ESP8266 input-mode open-drain comment correction and matches the comment-only change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ 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/3735-followup-opendrain-comment

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.

@zackees
zackees merged commit c535eaf into master Jul 31, 2026
10 of 12 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 31, 2026
@zackees
zackees deleted the fix/3735-followup-opendrain-comment branch July 31, 2026 20:47
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.

1 participant