Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Sep 19, 2023
1 parent 0e7892a commit 271f111
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class BrushedMotorInterruptHandler {
// movements that occur from motion and vibration
enc_errored.debounce_update(
move_delta > error_conf.unwanted_movement_threshold);
if (enc_errored.debounce_state() == true) {
if (enc_errored.debounce_state()) {
// enc value errored for 3 consecutive ticks
cancel_and_clear_moves(
can::ids::ErrorCode::collision_detected);
Expand All @@ -163,7 +163,7 @@ class BrushedMotorInterruptHandler {
std::abs(pulses - hold_encoder_position) >
error_conf.unwanted_movement_threshold);

if (enc_errored.debounce_state() == true) {
if (enc_errored.debounce_state()) {
// enc value errored for 3 consecutive ticks
// we have likely dropped a labware or had a collision
auto err =
Expand Down

0 comments on commit 271f111

Please sign in to comment.