Skip to content

fix(SPI): Make it compile in every compiler#579

Merged
jorgesg82 merged 1 commit intodevelopmentfrom
fix/SPI-recover-a-fix-that-was-discarded
Feb 26, 2026
Merged

fix(SPI): Make it compile in every compiler#579
jorgesg82 merged 1 commit intodevelopmentfrom
fix/SPI-recover-a-fix-that-was-discarded

Conversation

@FoniksFox
Copy link
Contributor

Just what the title says

Copilot AI review requested due to automatic review settings February 26, 2026 18:28
Copy link
Contributor

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 pull request fixes a compiler compatibility issue by replacing designated initializers with member-by-member assignment in the SPI domain initialization code. Designated initializers (using .field = value syntax) introduced in C++20 have limitations and may not be fully supported by all C++ compilers, particularly older versions of arm-none-eabi-g++ used for cross-compilation to embedded ARM targets.

Changes:

  • Replaced designated initializer syntax with explicit member-by-member assignment for the Entry struct in SPIDomain::Device::inscribe()
  • This ensures the code compiles successfully across different compiler toolchains

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

@jorgesg82 jorgesg82 merged commit c466c5a into development Feb 26, 2026
21 checks passed
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