From 4f1a301e0e881bfd43d067ff412fc23c52e1fd9e Mon Sep 17 00:00:00 2001 From: "D.R.racer" Date: Wed, 21 Sep 2022 12:18:12 +0200 Subject: [PATCH] Force fix formatting --- src/modules/globals.cpp | 2 +- src/modules/globals.h | 1 + tests/unit/logic/stubs/stub_motion.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/globals.cpp b/src/modules/globals.cpp index 45b4cb5..d4b64e7 100644 --- a/src/modules/globals.cpp +++ b/src/modules/globals.cpp @@ -83,7 +83,7 @@ uint8_t Globals::StallGuardThreshold(config::Axis axis) const { return mps::AxisTMCSetup::get(axis, hal::progmem::read_byte(defaultAxisSGTHRs + axis)); } -void Globals::SetStallGuardThreshold(config::Axis axis, uint8_t sgthrs){ +void Globals::SetStallGuardThreshold(config::Axis axis, uint8_t sgthrs) { mps::AxisTMCSetup::set(axis, sgthrs); // store the value in EEPROM } diff --git a/src/modules/globals.h b/src/modules/globals.h index 78f689e..5f52917 100644 --- a/src/modules/globals.h +++ b/src/modules/globals.h @@ -94,6 +94,7 @@ public: uint8_t StallGuardThreshold(config::Axis axis) const; /// Stores the new StallGuard threshold for an axis into EEPROM (does not affect the current state of TMC drivers at all) void SetStallGuardThreshold(config::Axis axis, uint8_t sgthrs); + private: /// Sets the active slot, usually after some command/operation. /// Also updates the EEPROM records accordingly diff --git a/tests/unit/logic/stubs/stub_motion.cpp b/tests/unit/logic/stubs/stub_motion.cpp index 19f78e6..bbd8f83 100644 --- a/tests/unit/logic/stubs/stub_motion.cpp +++ b/tests/unit/logic/stubs/stub_motion.cpp @@ -36,7 +36,7 @@ void TriggerStallGuard(Axis axis) { axes[axis].stallGuard = true; } -void Motion::PlanStallGuardThreshold(Axis axis, uint8_t sg_thrs){ +void Motion::PlanStallGuardThreshold(Axis axis, uint8_t sg_thrs) { // do nothing for now }