Force fix formatting

pull/206/head
D.R.racer 2022-09-21 12:18:12 +02:00 committed by DRracer
parent 0fa8a3c278
commit 4f1a301e0e
3 changed files with 3 additions and 2 deletions

View File

@ -83,7 +83,7 @@ uint8_t Globals::StallGuardThreshold(config::Axis axis) const {
return mps::AxisTMCSetup::get(axis, hal::progmem::read_byte(defaultAxisSGTHRs + axis)); 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 mps::AxisTMCSetup::set(axis, sgthrs); // store the value in EEPROM
} }

View File

@ -94,6 +94,7 @@ public:
uint8_t StallGuardThreshold(config::Axis axis) const; 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) /// 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); void SetStallGuardThreshold(config::Axis axis, uint8_t sgthrs);
private: private:
/// Sets the active slot, usually after some command/operation. /// Sets the active slot, usually after some command/operation.
/// Also updates the EEPROM records accordingly /// Also updates the EEPROM records accordingly

View File

@ -36,7 +36,7 @@ void TriggerStallGuard(Axis axis) {
axes[axis].stallGuard = true; 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 // do nothing for now
} }