Skip to content

Commit

Permalink
Version 3.4.0beta6
Browse files Browse the repository at this point in the history
In the TMC2209 driver, set the high sensitivity bit whenever the chopper
control register is updated.
  • Loading branch information
dc42 committed Nov 6, 2021
1 parent 3b25505 commit ac04ae0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Movement/StepperDrivers/TMC22xx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#ifndef SRC_VERSION_H_
#define SRC_VERSION_H_

#define VERSION "3.4.0beta5+1"
#define VERSION "3.4.0beta6"

#include <General/IsoDate.h>

Expand Down

0 comments on commit ac04ae0

Please sign in to comment.