mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-20 13:17:55 -06:00
gcode: Pass the pseudo-tty fd via the start_args system
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
b66dd1a60f
commit
0d930bf871
2 changed files with 8 additions and 9 deletions
|
@ -70,9 +70,9 @@ class GCodeCommand:
|
|||
class GCodeParser:
|
||||
error = homing.CommandError
|
||||
RETRY_TIME = 0.100
|
||||
def __init__(self, printer, fd):
|
||||
def __init__(self, printer):
|
||||
self.printer = printer
|
||||
self.fd = fd
|
||||
self.fd = printer.get_start_args().get("gcode_fd")
|
||||
printer.register_event_handler("klippy:ready", self._handle_ready)
|
||||
printer.register_event_handler("klippy:shutdown", self._handle_shutdown)
|
||||
printer.register_event_handler("klippy:disconnect",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue