summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/target/trx_toolkit/ctrl_if.py4
-rw-r--r--src/target/trx_toolkit/ctrl_if_trx.py1
-rw-r--r--src/target/trx_toolkit/data_if.py4
3 files changed, 8 insertions, 1 deletions
diff --git a/src/target/trx_toolkit/ctrl_if.py b/src/target/trx_toolkit/ctrl_if.py
index 45bfa2b..a1c19f0 100644
--- a/src/target/trx_toolkit/ctrl_if.py
+++ b/src/target/trx_toolkit/ctrl_if.py
@@ -27,6 +27,10 @@ import logging as log
from udp_link import UDPLink
class CTRLInterface(UDPLink):
+ def __init__(self, *udp_link_args):
+ UDPLink.__init__(self, *udp_link_args)
+ log.debug("Init CTRL interface (%s)" % self.desc_link())
+
def handle_rx(self):
# Read data from socket
data, remote = self.sock.recvfrom(128)
diff --git a/src/target/trx_toolkit/ctrl_if_trx.py b/src/target/trx_toolkit/ctrl_if_trx.py
index 0d4935d..26a844f 100644
--- a/src/target/trx_toolkit/ctrl_if_trx.py
+++ b/src/target/trx_toolkit/ctrl_if_trx.py
@@ -46,7 +46,6 @@ class CTRLInterfaceTRX(CTRLInterface):
def __init__(self, trx, *udp_link_args):
CTRLInterface.__init__(self, *udp_link_args)
- log.info("Init CTRL interface (%s)" % self.desc_link())
# Link with Transceiver instance we belong to
self.trx = trx
diff --git a/src/target/trx_toolkit/data_if.py b/src/target/trx_toolkit/data_if.py
index a773c04..b1ba1e5 100644
--- a/src/target/trx_toolkit/data_if.py
+++ b/src/target/trx_toolkit/data_if.py
@@ -28,6 +28,10 @@ from udp_link import UDPLink
from data_msg import *
class DATAInterface(UDPLink):
+ def __init__(self, *udp_link_args):
+ UDPLink.__init__(self, *udp_link_args)
+ log.debug("Init DATA interface (%s)" % self.desc_link())
+
def recv_raw_data(self):
data, _ = self.sock.recvfrom(512)
return data