Skip to content

fix: default LinuxResources points to non existent devices#809

Merged
gbin merged 4 commits into
masterfrom
yang/fix/cu_linux_resources
Feb 12, 2026
Merged

fix: default LinuxResources points to non existent devices#809
gbin merged 4 commits into
masterfrom
yang/fix/cu_linux_resources

Conversation

@makeecat

@makeecat makeecat commented Feb 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

fix the bug that default LinuxResources points to non existent devices introduced by PR: #790

Related issues

Changes

  • Renamed slot identifiers: SerialAcm0..SerialUsb2 → Serial0..Serial5
  • Removed default device paths: Serial and I2C slots are only initialized when explicitly configured via serialN_dev or i2cN_dev
  • Replaced eprintln! with warning!: Using Copper's unified logging system (required adding build.rs with LOG_INDEX_DIR setup and
    converting errors to strings via .to_string())
  • Updated documentation: README files for cu_linux_resources, cu_crsf, cu_msp_bridge, cu_lewansoul, and rendercfg.rs
  • Updated example config: cu_msp_bridge_loopback now uses linux.serial3 instead of linux.serial_usb0

Testing

  • just std-ci
  • just lint
  • cargo +stable nextest run --workspace --all-targets

Checklist

  • I have updated docs or examples where needed
  • I have added or updated tests where needed
  • I have considered platform impact (Linux/macOS/Windows/embedded)
  • I have considered config/logging changes (if applicable)
  • This change is not a breaking change (or I documented it below)

@makeecat makeecat self-assigned this Feb 12, 2026
@makeecat makeecat added bug Something isn't working exclude from changelog labels Feb 12, 2026
@makeecat makeecat requested a review from gbin February 12, 2026 04:51

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 198f46a3cf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread components/res/cu_linux_resources/src/lib.rs Outdated

@gbin gbin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

thanks! with a couple nits

Comment thread components/bridges/cu_crsf/README.md Outdated
id: "msp_bridge",
type: "cu_msp_bridge::CuMspBridgeStd",
resources: { serial: "linux.serial_usb0" },
resources: { serial: "linux.serial3" },

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ha here is it ok :)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

what do you suggest to do here? Is that an acknowledgment that this one is good here?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

yep the id is linux, which makes sense in the context :) but still move it to the common doc form the bundle

Comment thread components/bridges/cu_msp_bridge/README.md Outdated
@makeecat makeecat requested a review from gbin February 12, 2026 14:32

@gbin gbin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please move the msp doc too

id: "msp_bridge",
type: "cu_msp_bridge::CuMspBridgeStd",
resources: { serial: "linux.serial_usb0" },
resources: { serial: "linux.serial3" },

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

yep the id is linux, which makes sense in the context :) but still move it to the common doc form the bundle

@makeecat

Copy link
Copy Markdown
Collaborator Author

please move the msp doc too

I believe they have already been moved in 64618ba

@gbin gbin merged commit d474d6f into master Feb 12, 2026
23 checks passed
@gbin gbin deleted the yang/fix/cu_linux_resources branch February 12, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working exclude from changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: default LinuxResources points to non existent devices

2 participants