Extruder: Add g-code to set extruder step_distance (#2598)

Signed off by: David Smith <davidosmith@gmail.com>
This commit is contained in:
David Smith 2020-03-28 09:52:46 -04:00 committed by GitHub
parent 8f8cf7ef41
commit d4bf61262e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 0 deletions

View file

@ -94,6 +94,10 @@ class MCU_stepper:
return self._oid
def get_step_dist(self):
return self._step_dist
def set_step_dist(self, sk, dist):
self._step_dist = dist
self.set_stepper_kinematics(sk)
logging.info("%s manually set to =%.6f", (self._name, dist))
def is_dir_inverted(self):
return self._invert_dir
def calc_position_from_coord(self, coord):