Skip to content

Commit

Permalink
use correct tick flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 22, 2025
1 parent cbd6d84 commit 41d0634
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ class MovementProfile {

// When incrementing position tracker, if this bit changes then
// a step should take place.
static constexpr q31_31 _tick_flag = (1 << radix);
static constexpr q31_31 _tick_flag =
(static_cast<uint64_t>(1) << radix) - 1;
};

} // namespace motor_util

0 comments on commit 41d0634

Please sign in to comment.