diff options
Diffstat (limited to 'klippy/cartesian.py')
-rw-r--r-- | klippy/cartesian.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/klippy/cartesian.py b/klippy/cartesian.py index ab95df5d..f69855f6 100644 --- a/klippy/cartesian.py +++ b/klippy/cartesian.py @@ -13,8 +13,10 @@ class CartKinematics: self.steppers = [stepper.PrinterStepper( printer, config.getsection('stepper_' + n), n) for n in ['x', 'y', 'z']] - self.max_z_velocity = config.getfloat('max_z_velocity', 9999999.9) - self.max_z_accel = config.getfloat('max_z_accel', 9999999.9) + self.max_z_velocity = config.getfloat( + 'max_z_velocity', 9999999.9, above=0.) + self.max_z_accel = config.getfloat( + 'max_z_accel', 9999999.9, above=0.) self.need_motor_enable = True self.limits = [(1.0, -1.0)] * 3 def set_max_jerk(self, max_xy_halt_velocity, max_velocity, max_accel): |