Skip to content

Fix declaration encoder sensor#565

Merged
FoniksFox merged 1 commit intodevelopmentfrom
fix/new-encoder
Feb 7, 2026
Merged

Fix declaration encoder sensor#565
FoniksFox merged 1 commit intodevelopmentfrom
fix/new-encoder

Conversation

@Cantonplas
Copy link
Contributor

Silly error that c++ doesnt like

Copilot AI review requested due to automatic review settings February 7, 2026 16:34
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

Reorders the EncoderSensor constructor initializer list to match the member declaration order, addressing a C++ initialization-order issue (commonly surfaced as -Wreorder warnings/errors).

Changes:

  • Move encoder(enc) initialization after counter_distance_m and sample_time_s in the initializer list to align with declared member order.

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

@FoniksFox FoniksFox merged commit d5156c1 into development Feb 7, 2026
22 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