From 54389b7214189f368f96199385046dbe52a110f9 Mon Sep 17 00:00:00 2001 From: pmoegenburg Date: Tue, 28 May 2024 15:22:46 -0400 Subject: [PATCH] pr review fix and format --- include/common/core/sensor_buffer.hpp | 2 +- .../core/stepper_motor/motor_interrupt_handler.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/common/core/sensor_buffer.hpp b/include/common/core/sensor_buffer.hpp index 3f89e1cb6..978d86cca 100644 --- a/include/common/core/sensor_buffer.hpp +++ b/include/common/core/sensor_buffer.hpp @@ -1,6 +1,6 @@ #pragma once -#if defined(USE_SENSOR_MOVE) +#ifdef USE_SENSOR_MOVE constexpr size_t SENSOR_BUFFER_SIZE = P_BUFF_SIZE; #else constexpr size_t SENSOR_BUFFER_SIZE = 0; diff --git a/include/motor-control/core/stepper_motor/motor_interrupt_handler.hpp b/include/motor-control/core/stepper_motor/motor_interrupt_handler.hpp index 6bdf7c705..8a1ffd607 100644 --- a/include/motor-control/core/stepper_motor/motor_interrupt_handler.hpp +++ b/include/motor-control/core/stepper_motor/motor_interrupt_handler.hpp @@ -573,8 +573,8 @@ class MotorInterruptHandler { build_and_send_ack(ack_msg_id); #ifdef USE_SENSOR_MOVE if (buffered_move.sensor_id != can::ids::SensorId::UNUSED) { - auto binding = - static_cast(can::ids::SensorOutputBinding::sync); // make none?! + auto binding = static_cast( + can::ids::SensorOutputBinding::sync); // make none?! if (buffered_move.sensor_id == can::ids::SensorId::BOTH) { send_bind_message(buffered_move.sensor_type, can::ids::SensorId::S0, binding);