diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-10-12 10:39:46 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-10-12 11:59:27 -0400 |
commit | 3b9b4e4d6f68216470bcb86070033a26a3562e23 (patch) | |
tree | 3c395273da145616cccecb94893e4c01e41c3074 /klippy/stepper.py | |
parent | 78ba7064a73448d64a32796a2ebf3e8fd2d9beab (diff) | |
download | kutter-3b9b4e4d6f68216470bcb86070033a26a3562e23.tar.gz kutter-3b9b4e4d6f68216470bcb86070033a26a3562e23.tar.xz kutter-3b9b4e4d6f68216470bcb86070033a26a3562e23.zip |
endstop: Eliminate end_stop_set_oversample command
Pass the sample_ticks and sample_count parameters directly in the
end_stop_home command instead. This simplifies the code.
Also, simplify calculation of next wakeup time in
end_stop_oversample_event().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r-- | klippy/stepper.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py index 6e75413b..9bcf1e72 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -6,9 +6,6 @@ import math, logging import homing, pins -ENDSTOP_OVERSAMPLE_COUNT = 4 -ENDSTOP_OVERSAMPLE_TIME = .000015 - class PrinterStepper: def __init__(self, printer, config, name): self.name = name @@ -55,8 +52,6 @@ class PrinterHomingStepper(PrinterStepper): self.mcu_endstop = pins.setup_pin( printer, 'endstop', config.get('endstop_pin')) - self.mcu_endstop.setup_oversample( - ENDSTOP_OVERSAMPLE_COUNT, ENDSTOP_OVERSAMPLE_TIME) self.mcu_endstop.add_stepper(self.mcu_stepper) self.position_min = config.getfloat('position_min', 0.) self.position_max = config.getfloat( |