Skip to content

Conversation

Chris0xdeadbeef
Copy link

This PR combines two commits refactoring the SPI flush loops in TMC2130_Basics:

  • Replaced magic numbers with constexpr uint8_t BYTES_TO_FLUSH = 4
  • Changed loop counters from int to uint8_t
  • Replaced post-increment i++ with pre-increment ++i for consistency

No functional changes, just code clean-up and minor performance improvements.

… uint8_t loop counter

Introduced `constexpr uint8_t BYTES_TO_FLUSH = 4;` for clarity and maintainability
Changed loop counter type from `int` to `uint8_t`
Replaced post-increment with pre-increment (`++i`) for consistency
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.

1 participant