Cosmetic updates from 14044

This commit is contained in:
Scott Lahteine
2019-07-24 01:52:36 -05:00
parent 05f4033a34
commit 1088846cae
10 changed files with 36 additions and 45 deletions

View File

@ -348,17 +348,15 @@ void test_tmc_connection(const bool test_x, const bool test_y, const bool test_z
#endif
/**
* TMC2130 specific sensorless homing using stallGuard2.
* TMC2130-specific sensorless homing using stallGuard2.
* stallGuard2 only works when in spreadCycle mode.
* spreadCycle and stealthChop are mutually exclusive.
* spreadCycle and stealthChop are mutually-exclusive.
*
* Defined here because of limitations with templates and headers.
*/
#if USE_SENSORLESS
// Track enabled status of stealthChop and only re-enable where applicable
struct sensorless_t {
bool x, y, z, x2, y2, z2, z3;
};
struct sensorless_t { bool x, y, z, x2, y2, z2, z3; };
bool tmc_enable_stallguard(TMC2130Stepper &st);
void tmc_disable_stallguard(TMC2130Stepper &st, const bool restore_stealth);