aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/filament_switch_sensor.py
diff options
context:
space:
mode:
authorArksine <arksine.code@gmail.com>2019-07-03 17:24:12 -0400
committerKevinOConnor <kevin@koconnor.net>2019-07-10 09:57:46 -0400
commit893c98ed1b38624b27b83c924c9605fe51f98e4c (patch)
tree841dca7aef7f0be858f875a76bbbc18d9be2c114 /klippy/extras/filament_switch_sensor.py
parentea6f30bd99e13213effd935ee79f178b8af37019 (diff)
downloadkutter-893c98ed1b38624b27b83c924c9605fe51f98e4c.tar.gz
kutter-893c98ed1b38624b27b83c924c9605fe51f98e4c.tar.xz
kutter-893c98ed1b38624b27b83c924c9605fe51f98e4c.zip
filament_switch_sensor: remove stale _hande_ready call in the BaseSensor
The toolhead attribute is no longer required by the BaseSensor class Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'klippy/extras/filament_switch_sensor.py')
-rw-r--r--klippy/extras/filament_switch_sensor.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/klippy/extras/filament_switch_sensor.py b/klippy/extras/filament_switch_sensor.py
index 59cbf315..260332ec 100644
--- a/klippy/extras/filament_switch_sensor.py
+++ b/klippy/extras/filament_switch_sensor.py
@@ -34,8 +34,6 @@ class BaseSensor(object):
self.printer.register_event_handler(
"idle_timeout:printing",
(lambda e, s=self, st="printing": s._update_print_status(e, st)))
- def _handle_ready(self):
- self.toolhead = self.printer.lookup_object('toolhead')
def _update_print_status(self, eventtime, status):
if status == "printing":
runout_en = self.runout_gcode is not None
@@ -95,7 +93,6 @@ class SwitchSensor(BaseSensor):
desc=self.cmd_QUERY_FILAMENT_SENSOR_help)
self.printer.register_event_handler("klippy:ready", self._handle_ready)
def _handle_ready(self):
- super(SwitchSensor, self)._handle_ready()
self.start_time = self.reactor.monotonic() + 2.
def _button_handler(self, eventtime, state):
if eventtime < self.start_time or state == self.last_button_state: