diff --git a/src/Movement/StepperDrivers/TMC22xx.cpp b/src/Movement/StepperDrivers/TMC22xx.cpp index c174dcab..327dbff0 100644 --- a/src/Movement/StepperDrivers/TMC22xx.cpp +++ b/src/Movement/StepperDrivers/TMC22xx.cpp @@ -905,7 +905,8 @@ void TmcDriverState::UpdateRegister(size_t regIndex, uint32_t regVal) noexcept // Calculate the chopper control register and flag it for sending void TmcDriverState::UpdateChopConfRegister() noexcept { - UpdateRegister(WriteChopConf, (enabled) ? configuredChopConfReg : configuredChopConfReg & ~CHOPCONF_TOFF_MASK); + // It's critical that CHOPCONF_VSENSE_HIGH is always set, so we or-it in here just in case + UpdateRegister(WriteChopConf, ((enabled) ? configuredChopConfReg : configuredChopConfReg & ~CHOPCONF_TOFF_MASK) | CHOPCONF_VSENSE_HIGH); } #if RESET_MICROSTEP_COUNTERS_AT_INIT diff --git a/src/Version.h b/src/Version.h index 7bba0724..898e9e3e 100644 --- a/src/Version.h +++ b/src/Version.h @@ -8,7 +8,7 @@ #ifndef SRC_VERSION_H_ #define SRC_VERSION_H_ -#define VERSION "3.4.0beta5+1" +#define VERSION "3.4.0beta6" #include