Skip to content

Commit

Permalink
main: refactor loading and configuration of configured sub-systems
Browse files Browse the repository at this point in the history
Signed-off-by: Cedric Hombourger <cedric.hombourger@siemens.com>
  • Loading branch information
chombourger committed Nov 19, 2023
1 parent 20b795a commit fc14036
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 212 deletions.
2 changes: 1 addition & 1 deletion mtda/console/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class DockerConsole(ConsoleInterface):

def __init__(self, mtda):
self.mtda = mtda
self.docker = mtda.power_controller
self.docker = mtda.power
self._fd = None
self._opened = False
self._socket = None
Expand Down
4 changes: 2 additions & 2 deletions mtda/console/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
class ConsoleLogger:

def __init__(self, mtda, console, socket=None,
power_controller=None, topic=b'CON',
power=None, topic=b'CON',
www=None):
self.mtda = mtda
self.console = console
self._prompt = "=> "
self.power_controller = power_controller
self.power = power
self.prints = True
self.rx_active = threading.Event()
self.rx_alive = False
Expand Down
2 changes: 1 addition & 1 deletion mtda/console/qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class QemuConsole(ConsoleInterface):

def __init__(self, mtda):
self.mtda = mtda
self.qemu = mtda.power_controller
self.qemu = mtda.power
self.opened = False

""" Configure this console from the provided configuration"""
Expand Down
2 changes: 1 addition & 1 deletion mtda/keyboard/qemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class QemuController(KeyboardController):

def __init__(self, mtda):
self.mtda = mtda
self.qemu = mtda.power_controller
self.qemu = mtda.power

def configure(self, conf):
self.mtda.debug(3, "keyboard.qemu.configure()")
Expand Down
Loading

0 comments on commit fc14036

Please # to comment.