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>
This commit is contained in:
Arksine 2019-07-03 17:24:12 -04:00 committed by KevinOConnor
parent ea6f30bd99
commit 893c98ed1b
1 changed files with 0 additions and 3 deletions

View File

@ -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: