Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed Oct 8, 2024
1 parent 94f8585 commit fe0c967
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stm32-modules/include/flex-stacker/flex-stacker/tmc2160.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,10 @@ class TMC2160 {
return reg;
}

// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
[[nodiscard]] auto verify_sgt_value(std::optional<int> sgt) -> bool {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-magic-numbers)
if (sgt.has_value()) {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-magic-numbers)
return sgt.value() >= -64 && sgt.value() <= 63;
}
return true;
Expand Down

0 comments on commit fe0c967

Please sign in to comment.