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>
This commit is contained in:
Kevin O'Connor 2023-01-07 11:53:09 -05:00
parent 4395ae96a7
commit 01f90e8f28
1 changed files with 2 additions and 7 deletions

View File

@ -5,7 +5,7 @@
# #
# This file may be distributed under the terms of the GNU GPLv3 license. # This file may be distributed under the terms of the GNU GPLv3 license.
import sys, optparse, os, re, logging import sys, optparse, os, re, logging
import util, reactor, serialhdl, pins, msgproto, clocksync import util, reactor, serialhdl, msgproto, clocksync
help_txt = """ help_txt = """
This is a debugging console for the Klipper micro-controller. This is a debugging console for the Klipper micro-controller.
@ -43,7 +43,6 @@ class KeyboardReader:
self.fd = sys.stdin.fileno() self.fd = sys.stdin.fileno()
util.set_nonblock(self.fd) util.set_nonblock(self.fd)
self.mcu_freq = 0 self.mcu_freq = 0
self.pins = pins.PinResolver(validate_aliases=False)
self.data = "" self.data = ""
reactor.register_fd(self.fd, self.process_kbd) reactor.register_fd(self.fd, self.process_kbd)
reactor.register_callback(self.connect) reactor.register_callback(self.connect)
@ -223,11 +222,7 @@ class KeyboardReader:
return None return None
line = ''.join(evalparts) line = ''.join(evalparts)
self.output("Eval: %s" % (line,)) self.output("Eval: %s" % (line,))
try: line = line.strip()
line = self.pins.update_command(line).strip()
except:
self.output("Unable to map pin: %s" % (line,))
return None
if line: if line:
parts = line.split() parts = line.split()
if parts[0] in self.local_commands: if parts[0] in self.local_commands: