Skip to content

Commit 72477f2

Browse files
committed
format
1 parent e3054ed commit 72477f2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

include/motor-control/firmware/brushed_motor/brushed_motor_hardware.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class BrushedMotorHardware : public BrushedMotorHardwareIface {
9999
debouncer::Debouncer estop = debouncer::Debouncer{};
100100
debouncer::Debouncer limit = debouncer::Debouncer{};
101101
debouncer::Debouncer sync = debouncer::Debouncer{};
102-
debouncer::Debouncer diag = debouncer::Debouncer{.holdoff_cnt=90};
102+
debouncer::Debouncer diag = debouncer::Debouncer{.holdoff_cnt = 90};
103103
BrushedHardwareConfig pins;
104104
void* enc_handle;
105105
int32_t motor_encoder_overflow_count = 0;

include/motor-control/firmware/stepper_motor/motor_hardware.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class MotorHardware : public StepperMotorHardwareIface {
7272

7373
private:
7474
debouncer::Debouncer estop = debouncer::Debouncer{};
75-
debouncer::Debouncer diag = debouncer::Debouncer{.holdoff_cnt=90};
75+
debouncer::Debouncer diag = debouncer::Debouncer{.holdoff_cnt = 90};
7676
debouncer::Debouncer limit = debouncer::Debouncer{};
7777
std::atomic_bool sync = false;
7878
static constexpr uint16_t encoder_reset_offset = 20;

motor-control/firmware/brushed_motor/brushed_motor_hardware.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ void BrushedMotorHardware::read_sync_in() {
5858
sync.debounce_update(gpio::is_set(pins.sync_in));
5959
}
6060

61-
void BrushedMotorHardware::read_tmc_diag0() { diag.debounce_update(gpio::is_set(pins.diag0)); }
61+
void BrushedMotorHardware::read_tmc_diag0() {
62+
diag.debounce_update(gpio::is_set(pins.diag0));
63+
}
6264

6365
int32_t BrushedMotorHardware::get_encoder_pulses() {
6466
if (!enc_handle) {

motor-control/firmware/stepper_motor/motor_hardware.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ void MotorHardware::read_estop_in() {
5353

5454
void MotorHardware::read_sync_in() { sync = gpio::is_set(pins.sync_in); }
5555

56-
void MotorHardware::read_tmc_diag0() { diag.debounce_update(gpio::is_set(pins.diag0)); }
56+
void MotorHardware::read_tmc_diag0() {
57+
diag.debounce_update(gpio::is_set(pins.diag0));
58+
}
5759

5860
void MotorHardware::set_LED(bool status) {
5961
if (status) {

0 commit comments

Comments
 (0)