aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/gcode.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-11-22 12:37:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2016-11-29 18:21:56 -0500
commitd161d667412c9a096a52b1e0b156c49158d857d3 (patch)
treeab74b19ad6df3f94617bb2fa3a74c28d61dd37aa /klippy/gcode.py
parent9755182adfa09de6886a0b482aa03d236f75f3ce (diff)
downloadkutter-d161d667412c9a096a52b1e0b156c49158d857d3.tar.gz
kutter-d161d667412c9a096a52b1e0b156c49158d857d3.tar.xz
kutter-d161d667412c9a096a52b1e0b156c49158d857d3.zip
mcu: Handle adc initialization entirely in mcu code
Don't expose the ADC initialization to the gcode and heater code - instead, register a callback within the MCU_adc class and call it directly from the MCU class after configuration completes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r--klippy/gcode.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index 056f7c50..2c57ed49 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -58,10 +58,6 @@ class GCodeParser:
self.gcode_handlers = dict((h, getattr(self, 'cmd_'+h))
for h in handlers)
def run(self):
- if self.heater_nozzle is not None:
- self.heater_nozzle.run()
- if self.heater_bed is not None:
- self.heater_bed.run()
self.fd_handle = self.reactor.register_fd(self.fd, self.process_data)
self.reactor.run()
def finish(self):