Skip to content
Snippets Groups Projects
Commit 3988f425 authored by Robin Mueller's avatar Robin Mueller
Browse files

Merge branch 'mueller/master' into sa/master

parents 3b9d9518 d3a516f1
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ from tmtc_core.comIF.obsw_qemu_com_if import QEMUComIF
from tmtc_core.utility.obsw_logger import get_logger
from tmtc_core.utility.obsw_tmtc_printer import TmTcPrinter
import config.tmtcc_config as g
import config.obsw_config as g
LOGGER = get_logger()
......@@ -68,6 +68,9 @@ def set_communication_interface(tmtc_printer: TmTcPrinter) -> Union[Communicatio
g.G_SERIAL_DLE_MAX_QUEUE_LEN, g.G_SERIAL_DLE_MAX_FRAME_SIZE, serial_timeout)
else:
communication_interface = DummyComIF(tmtc_printer=tmtc_printer)
if not communication_interface.valid:
LOGGER.warning("Invalid communication interface!")
sys.exit()
communication_interface.initialize()
return communication_interface
except (IOError, OSError):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment