mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 23:46:25 -06:00
toolhead: Split toolhead code from cartesian.py to new file toolhead.py
Separate out the toolhead logic to its own python file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
861f5a5387
commit
e0a9a1b800
3 changed files with 205 additions and 197 deletions
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
# This file may be distributed under the terms of the GNU GPLv3 license.
|
||||
import sys, optparse, ConfigParser, logging, time, threading
|
||||
import gcode, cartesian, util, mcu, fan, heater, reactor
|
||||
import gcode, toolhead, util, mcu, fan, heater, reactor
|
||||
|
||||
class ConfigWrapper:
|
||||
def __init__(self, printer, section):
|
||||
|
@ -58,7 +58,7 @@ class Printer:
|
|||
if self.fileconfig.has_section('heater_bed'):
|
||||
self.objects['heater_bed'] = heater.PrinterHeater(
|
||||
self, ConfigWrapper(self, 'heater_bed'))
|
||||
self.objects['toolhead'] = cartesian.ToolHead(
|
||||
self.objects['toolhead'] = toolhead.ToolHead(
|
||||
self, self._pconfig)
|
||||
|
||||
def stats(self, eventtime):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue