Skip to content

Conversation

@beniroquai
Copy link
Contributor

Replaced multiple type checks for axisToMove with a single calculation using the length of payload['motor'] to determine nResponses. This streamlines the code and improves maintainability.

Replaced multiple type checks for axisToMove with a single calculation using the length of payload['motor'] to determine nResponses. This streamlines the code and improves maintainability.
Copilot AI review requested due to automatic review settings December 5, 2025 12:00
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 attempts to simplify the nResponses calculation in the move_stepper method by replacing multiple type checks with a single calculation. However, the implementation contains a critical bug that will cause incorrect behavior.

Key Change

  • Replaced conditional type checking of axisToMove with len(payload["motor"]) to calculate nResponses

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@beniroquai beniroquai merged commit 6f9ca61 into master Dec 5, 2025
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.

2 participants