Skip to content

Commit

Permalink
Merge pull request #51 from Chr157i4n/dev
Browse files Browse the repository at this point in the history
version 0.4.3
  • Loading branch information
Chr157i4n committed Feb 9, 2024
2 parents 94bea92 + 153b774 commit 2f28cd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## version 0.4.3

- small bugfix

## version 0.4.2

- added support for Nvidia Jetson
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = TMC_2209_Raspberry_Pi
version = 0.4.2
version = 0.4.3
author = Christian Köhlke
author_email = christian@koehlke.de
description = this is a Python libary to drive a stepper motor with a Trinamic TMC2209 stepper driver and a Raspberry Pi
Expand Down
2 changes: 2 additions & 0 deletions src/TMC_2209/_TMC_2209_comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ def read_microstepping_resolution(self):
msresdezimal = 8 - msresdezimal

self._msres = int(math.pow(2, msresdezimal))
self._steps_per_rev = self._fullsteps_per_rev * self._msres

return self._msres

Expand Down Expand Up @@ -552,6 +553,7 @@ def set_microstepping_resolution(self, msres):
self.tmc_uart.write_reg_check(tmc_reg.CHOPCONF, chopconf)

self._msres = msres
self._steps_per_rev = self._fullsteps_per_rev * self._msres

self.set_mstep_resolution_reg_select(True)

Expand Down

0 comments on commit 2f28cd1

Please sign in to comment.