Skip to content

--pdports: Clarify output#315

Merged
JohnAZoidberg merged 3 commits intomainfrom
pdports-clarify
Apr 15, 2026
Merged

--pdports: Clarify output#315
JohnAZoidberg merged 3 commits intomainfrom
pdports-clarify

Conversation

@JohnAZoidberg
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Type-C state is the state of the port partner.
And hide that information if no PD contract.

Signed-off-by: Daniel Schaefer <dhs@frame.work>
- VCONN and Negotiated only makes sense if there's a connection
- On top of that Port Partner role, EPR and sink active only makes sense
  with pd contract
- Rename Active Port to Sink Active to be clearer

Signed-off-by: Daniel Schaefer <dhs@frame.work>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR clarifies the framework_tool --pdports output by only printing connection/contract-specific fields when they’re meaningful, and updates the documentation examples to match the new output format.

Changes:

  • Update --pdports output formatting: show negotiated/VCONN/CC details only when a port is connected; show EPR/partner/active-sink only when a PD contract exists.
  • Rename the previously confusing “Type-C State” output to “Port Partner” (shown only when a PD contract exists) and rename “Active Port” to “Sink Active” (only for sink role).
  • Refresh EXAMPLES.md --pdports section with updated excerpts and an explicit invocation snippet.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
framework_lib/src/power.rs Adjusts --pdports printing logic to conditionally display fields and clarify labels.
EXAMPLES.md Updates --pdports documentation and sample outputs to reflect the new formatting/labels.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JohnAZoidberg JohnAZoidberg merged commit fce6b16 into main Apr 15, 2026
14 checks passed
@JohnAZoidberg JohnAZoidberg deleted the pdports-clarify branch April 15, 2026 01:22
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