Skip to content

Prescaler was not initialized in init#584

Merged
jorgesg82 merged 12 commits intodevelopmentfrom
fix/encoder_prescaler
Mar 4, 2026
Merged

Prescaler was not initialized in init#584
jorgesg82 merged 12 commits intodevelopmentfrom
fix/encoder_prescaler

Conversation

@Cantonplas
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 4, 2026 16:56
@Cantonplas Cantonplas marked this pull request as ready for review March 4, 2026 16:56
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 PR adjusts the encoder timer initialization to ensure the timer prescaler/period are applied during Encoder::init, addressing the reported issue that the prescaler was not initialized.

Changes:

  • Removes configuration of TIM_HandleTypeDef::Init fields inside Encoder::init.
  • Adds direct writes to the timer registers (PSC, ARR) after HAL encoder/master initialization.

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

victor-Lopez25
victor-Lopez25 previously approved these changes Mar 4, 2026
Copy link
Contributor

@victor-Lopez25 victor-Lopez25 left a comment

Choose a reason for hiding this comment

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

I made this change and I think I did very good

@jorgesg82 jorgesg82 merged commit 678c6e6 into development Mar 4, 2026
17 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.

4 participants