Commit 5adacadc authored by Robin Mueller's avatar Robin Mueller
Browse files

default state is valid now

parent cdd8f5bb
......@@ -24,7 +24,7 @@ class CommunicationInterface:
"""
def __init__(self, tmtc_printer: TmTcPrinter):
self.tmtc_printer = tmtc_printer
self.valid = False
self.valid = True
@abstractmethod
def close(self) -> None:
......
......@@ -36,6 +36,7 @@ class EthernetComIF(CommunicationInterface):
self.udp_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.receive_address = receive_address
self.destination_address = send_address
self.valid = True
self.set_up_socket(self.receive_address)
def close(self) -> None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment