aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Status_Reference.md
diff options
context:
space:
mode:
authorAlex Voinea <voinea.dragos.alexandru@gmail.com>2023-03-04 10:25:49 +0100
committerKevinOConnor <kevin@koconnor.net>2023-03-07 10:55:44 -0500
commitbee1c67416c0f05eda06078bf160edb8b6ce092e (patch)
tree4c89a91f28960940e4bb47b93c456459a449e13f /docs/Status_Reference.md
parente6307ca9fe8d6e63037fa22ec9a2200f7921537c (diff)
downloadkutter-bee1c67416c0f05eda06078bf160edb8b6ce092e.tar.gz
kutter-bee1c67416c0f05eda06078bf160edb8b6ce092e.tar.xz
kutter-bee1c67416c0f05eda06078bf160edb8b6ce092e.zip
tmc5160: allow changing the globalscaler at runtime
Previously, the globalscaler was calculated during the config parsing and set to a fixed value. If the current was changed for any reason after the initialization, only IRUN and IHOLD would be changed. This however caused issues: - If the new current was lower, then the resolution of the possible current values would be low since there are only 32 IRUN/IHOLD steps. - If the new current was higher, it wouldn't actually work since IRUN and IHOLD are capped at 31, so it wouldn't be possible to increase the current without increasing globalscaler. With this commit, the globalscaler is recalculated whenever necessary in order to ensure the correct range of IRUN/IHOLD is used. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
Diffstat (limited to 'docs/Status_Reference.md')
0 files changed, 0 insertions, 0 deletions