aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2023-01-07 11:53:09 -0500
committerKevin O'Connor <kevin@koconnor.net>2023-01-07 12:00:16 -0500
commit01f90e8f28b5dccf803f92e9516fdc634083d1a1 (patch)
tree0be735984c06e05cdc7cc466a8e67f203f17bb83
parent4395ae96a73edcbcea24dd1dd0475f65f3fde80a (diff)
downloadkutter-01f90e8f28b5dccf803f92e9516fdc634083d1a1.tar.gz
kutter-01f90e8f28b5dccf803f92e9516fdc634083d1a1.tar.xz
kutter-01f90e8f28b5dccf803f92e9516fdc634083d1a1.zip
console: No need to import pins module
The pins module is no longer used in console.py. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rwxr-xr-xklippy/console.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/klippy/console.py b/klippy/console.py
index da32e18b..0a20e09e 100755
--- a/klippy/console.py
+++ b/klippy/console.py
@@ -5,7 +5,7 @@
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import sys, optparse, os, re, logging
-import util, reactor, serialhdl, pins, msgproto, clocksync
+import util, reactor, serialhdl, msgproto, clocksync
help_txt = """
This is a debugging console for the Klipper micro-controller.
@@ -43,7 +43,6 @@ class KeyboardReader:
self.fd = sys.stdin.fileno()
util.set_nonblock(self.fd)
self.mcu_freq = 0
- self.pins = pins.PinResolver(validate_aliases=False)
self.data = ""
reactor.register_fd(self.fd, self.process_kbd)
reactor.register_callback(self.connect)
@@ -223,11 +222,7 @@ class KeyboardReader:
return None
line = ''.join(evalparts)
self.output("Eval: %s" % (line,))
- try:
- line = self.pins.update_command(line).strip()
- except:
- self.output("Unable to map pin: %s" % (line,))
- return None
+ line = line.strip()
if line:
parts = line.split()
if parts[0] in self.local_commands: