Skip to content

Let users select the USB output report transport the driver already a… - #626

Merged
nefarius merged 1 commit into
masterfrom
feat/usb-output-report-transport
Oct 16, 2026
Merged

nefarius merged 1 commit into
masterfrom
feat/usb-output-report-transport

Conversation

@nefarius

@nefarius nefarius commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

…pplies.

Summary by CodeRabbit

  • New Features
    • Added a USB output transport option to device settings, with choices for automatic selection, interrupt output, and control endpoint.
    • USB transport settings are preserved when saved, loaded, copied, or applied as an override.
    • Existing configurations without a USB transport continue to use the automatic default.

…pplies.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 3d862940-3779-445c-ad30-c6a36285f75f
📥 Commits

Reviewing files that changed from the base of the PR and between 31a1834 and 2963411.

📒 Files selected for processing: 6
  • ControlApp.Tests/DriverConfigContractTests.cs
  • ControlApp.Tests/SettingsCopyAndBindingTests.cs
  • ControlApp/Models/DshmConfigManager/DeviceSettings.cs
  • ControlApp/Models/DshmConfigManager/DshmTranslationUtils.cs
  • ControlApp/ViewModels/UserControls/DeviceSettings/OutputReportSettingsViewModel.cs
  • ControlApp/Views/UserControls/DeviceSettingsEditor.xaml

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 8 reviews per hour.

📝 Walkthrough

The change adds a USB output transport setting with an Auto default. It copies and converts the setting between application and driver configurations, adds a selector to the settings editor, and extends tests for serialization, legacy configurations, overlays, and settings copying.

Changes: USB Output Transport

Layer / File(s) Summary
Setting propagation and configuration coverage
ControlApp/Models/DshmConfigManager/DeviceSettings.cs, ControlApp/Models/DshmConfigManager/DshmTranslationUtils.cs, ControlApp.Tests/DriverConfigContractTests.cs, ControlApp.Tests/SettingsCopyAndBindingTests.cs
OutputReportSettings defaults USB output transport to Auto and copies the value. Conversion maps the value between application and driver settings. Tests cover defaults, enum serialization, legacy configurations, overlays, and copying.
Settings editor selector
ControlApp/ViewModels/UserControls/DeviceSettings/OutputReportSettingsViewModel.cs, ControlApp/Views/UserControls/DeviceSettingsEditor.xaml
The view model exposes the USB transport value and available enum values. The editor adds a selector bound to those properties.

Priority: ⬇️ Low

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

Change: Feature

Merge Risk: ⚪ Minimal · up to 29634

The USB output transport setting appears ready to merge after normal checks.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: allowing users to select the USB output report transport already applied by the driver.
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.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

I’m a rabbit, and I hop through settings bright,
USB choices now sit in plain sight.
Auto is ready when settings begin,
InterruptOut and ControlEndpoint join in.
I nibble a carrot and close the review,
While copied values stay true.

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

@nefarius
nefarius merged commit 8669443 into master Oct 16, 2026
8 checks passed
@nefarius
nefarius deleted the feat/usb-output-report-transport branch October 16, 2026 17:55
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.

1 participant