From 659929062d6409e451b0df97ccdb1c70aec1d4fb Mon Sep 17 00:00:00 2001 From: pmoegenburg Date: Mon, 22 Apr 2024 18:58:17 -0400 Subject: [PATCH] attempted fix for 96-channel motor driver error false positive (#772) --- pipettes/firmware/motor_configurations.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pipettes/firmware/motor_configurations.cpp b/pipettes/firmware/motor_configurations.cpp index 2a43d0f1f..70c96da5e 100644 --- a/pipettes/firmware/motor_configurations.cpp +++ b/pipettes/firmware/motor_configurations.cpp @@ -207,6 +207,11 @@ auto motor_configs::hardware_config_by_axis(TMC2160PipetteAxis which) .port = GPIOB, .pin = GPIO_PIN_9, .active_setting = GPIO_PIN_RESET}, + .diag0 = + {// NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast) + .port = GPIOB, + .pin = GPIO_PIN_6, + .active_setting = GPIO_PIN_RESET}, }; case TMC2160PipetteAxis::left_gear_motor: return motor_hardware::HardwareConfig{ @@ -237,6 +242,11 @@ auto motor_configs::hardware_config_by_axis(TMC2160PipetteAxis which) .port = GPIOB, .pin = GPIO_PIN_9, .active_setting = GPIO_PIN_RESET}, + .diag0 = + {// NOLINTNEXTLINE(cppcoreguidelines-pro-type-cstyle-cast) + .port = GPIOB, + .pin = GPIO_PIN_6, + .active_setting = GPIO_PIN_RESET}, }; case TMC2160PipetteAxis::linear_motor: default: