Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
source
TMTC COMMANDER CORE
Commits
5adacadc
Commit
5adacadc
authored
Sep 01, 2020
by
Robin Mueller
Browse files
default state is valid now
parent
cdd8f5bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
comIF/obsw_com_interface.py
View file @
5adacadc
...
...
@@ -24,7 +24,7 @@ class CommunicationInterface:
"""
def
__init__
(
self
,
tmtc_printer
:
TmTcPrinter
):
self
.
tmtc_printer
=
tmtc_printer
self
.
valid
=
Fals
e
self
.
valid
=
Tru
e
@
abstractmethod
def
close
(
self
)
->
None
:
...
...
comIF/obsw_ethernet_com_if.py
View file @
5adacadc
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment