Skip to content

Commit

Permalink
lint & format
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Dec 15, 2023
1 parent 24deb5b commit 8ee47de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BrushedMotorErrorTolerance {
idle_holdoff_ticks = uint32_t(timer_freq / 1000 * holdoff_ms);
}

auto get_holdoff_ms() -> double {
[[nodiscard]] auto get_holdoff_ms() const -> double {
return double(idle_holdoff_ticks * 1000 / timer_freq);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ struct MockBrushedMotionController {
fixed_point_to_float(can_msg.holdoff_ms, S15Q16_RADIX));
}

auto get_idle_holdoff_ms() -> uint32_t {
[[nodiscard]] auto get_idle_holdoff_ms() const -> uint32_t {
return convert_to_fixed_point(error_config.get_holdoff_ms(),
S15Q16_RADIX);
}
Expand Down

0 comments on commit 8ee47de

Please sign in to comment.