From 271f111a8015df50291d6fb5cf406494a311b7c4 Mon Sep 17 00:00:00 2001 From: ahiuchingau <20424172+ahiuchingau@users.noreply.github.com> Date: Tue, 19 Sep 2023 18:55:09 -0400 Subject: [PATCH] fix lint --- .../core/brushed_motor/brushed_motor_interrupt_handler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/motor-control/core/brushed_motor/brushed_motor_interrupt_handler.hpp b/include/motor-control/core/brushed_motor/brushed_motor_interrupt_handler.hpp index cf73b17ec..5fabf2b0a 100644 --- a/include/motor-control/core/brushed_motor/brushed_motor_interrupt_handler.hpp +++ b/include/motor-control/core/brushed_motor/brushed_motor_interrupt_handler.hpp @@ -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); @@ -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 =