Skip to content

DEV-737 change default USB speed and value#276

Merged
jyong15 merged 2 commits into
masterfrom
DEV-737_set_default_USB_high_speed
May 18, 2026
Merged

DEV-737 change default USB speed and value#276
jyong15 merged 2 commits into
masterfrom
DEV-737_set_default_USB_high_speed

Conversation

@marknolan

Copy link
Copy Markdown
Member

This pull request updates how USB speed settings are represented and managed in the EepromSensorSettingsDetails class. The main change is a shift from using a mUsbFullSpeed boolean to a mUsbHighSpeed boolean, along with clarifying the meaning and bit values for USB speed options. These changes improve code clarity and ensure correct mapping between the boolean state and the USB speed configuration.

USB Speed Handling Updates:

  • Replaced the mUsbFullSpeed boolean with mUsbHighSpeed throughout the class to more accurately reflect the intended USB speed state. [1] [2] [3] [4]
  • Updated the USB_SPEED enum to clarify speed names and bit values: HIGH_SPEED now represents 480 Mbps with bit value 0x04, and FULL_SPEED is 12 Mbps with bit value 0x00.
  • Adjusted logic in methods such as parseEepromSensorSettingsDetails, generateDebugString, setUsbSpeedStateFromString, and updateEepromPageArray to use the new mUsbHighSpeed field and the revised enum values, ensuring correct USB speed setting and reporting. [1] [2] [3]

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates USB speed handling in EepromSensorSettingsDetails by replacing the mUsbFullSpeed flag with mUsbHighSpeed and aligning the USB_SPEED enum names/bit values to match the intended meaning (High-Speed = bit 0x04, Full-Speed = 0x00). This improves clarity and ensures EEPROM bit parsing/writing matches the chosen speed.

Changes:

  • Renamed the stored USB speed state from mUsbFullSpeed to mUsbHighSpeed and updated all related logic.
  • Updated USB_SPEED enum labeling and bit values to reflect 480 Mbps vs 12 Mbps.
  • Adjusted parsing/debug string generation and EEPROM page updates to use the new flag and mapping.

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

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@jyong15 jyong15 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.

Tested and looks good

@jyong15 jyong15 merged commit e3c960d into master May 18, 2026
1 check passed
@jyong15 jyong15 deleted the DEV-737_set_default_USB_high_speed branch May 18, 2026 05:06
@marknolan marknolan self-assigned this May 18, 2026
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.

3 participants