diff --git a/.run/tmtccli.run.xml b/.run/tmtccli.run.xml
index 47e4416..c96530c 100644
--- a/.run/tmtccli.run.xml
+++ b/.run/tmtccli.run.xml
@@ -3,9 +3,6 @@
-
-
-
@@ -15,7 +12,7 @@
-
+
diff --git a/deps/tmtccmd b/deps/tmtccmd
index a8dda11..ce82659 160000
--- a/deps/tmtccmd
+++ b/deps/tmtccmd
@@ -1 +1 @@
-Subproject commit a8dda1113cd1f70e984915cff920a261de942adf
+Subproject commit ce826596e829773336838cce803159a8173614e5
diff --git a/pus_tc/cmd_definitions.py b/pus_tc/cmd_definitions.py
index 948a94b..f68b383 100644
--- a/pus_tc/cmd_definitions.py
+++ b/pus_tc/cmd_definitions.py
@@ -167,7 +167,7 @@ def add_bpx_cmd_definitions(defs: TmTcDefWrapper):
)
oce.add(keys=BpxOpCodes.REBOOT, info="Reboot Command")
defs.add_service(
- name=CustomServiceList.BPX_BATTERY,
+ name=CustomServiceList.BPX_BATTERY.value,
info="BPX Battery Handler",
op_code_entry=oce,
)
diff --git a/pus_tc/devs/plpcdu.py b/pus_tc/devs/plpcdu.py
index 786cd49..be6a784 100644
--- a/pus_tc/devs/plpcdu.py
+++ b/pus_tc/devs/plpcdu.py
@@ -146,7 +146,7 @@ def add_pl_pcdu_cmds(defs: TmTcDefWrapper):
info="Inject failure in MPA to HPA transition",
)
oce.add(keys=OpCodes.INJECT_ALL_ON_FAILURE, info="Inject failure in all on mode")
- defs.add_service(CustomServiceList.PL_PCDU, "PL PCDU", oce)
+ defs.add_service(CustomServiceList.PL_PCDU.value, "PL PCDU", oce)
def pack_pl_pcdu_commands(q: DefaultPusQueueHelper, op_code: str):
diff --git a/pus_tc/system/core.py b/pus_tc/system/core.py
index 894c77f..39a580a 100644
--- a/pus_tc/system/core.py
+++ b/pus_tc/system/core.py
@@ -109,7 +109,7 @@ def add_core_controller_definitions(defs: TmTcDefWrapper):
keys=OpCodes.RESET_REBOOT_COUNTER_11,
info="Reset reboot counter 1 1",
)
- defs.add_service(CustomServiceList.CORE, "Core Controller", oce)
+ defs.add_service(CustomServiceList.CORE.value, "Core Controller", oce)
def pack_core_commands(q: DefaultPusQueueHelper, op_code: str):
diff --git a/pus_tm/system/tcs.py b/pus_tm/system/tcs.py
index 27d4583..c886c0e 100644
--- a/pus_tm/system/tcs.py
+++ b/pus_tm/system/tcs.py
@@ -2,7 +2,11 @@ import enum
import struct
from pus_tm.defs import PrintWrapper
-from pus_tm.tcp_server_objects import *
+from pus_tm.tcp_server_objects import (
+ tcp_server_sensor_temperatures,
+ tcp_server_device_temperatures,
+)
+from pus_tm.tm_tcp_server import TmTcpServer
from tmtccmd.util import ObjectIdU32
from tmtccmd.util.tmtc_printer import FsfwTmTcPrinter
@@ -16,6 +20,10 @@ class SetIds(enum.IntEnum):
def handle_thermal_controller_hk_data(
object_id: ObjectIdU32, printer: FsfwTmTcPrinter, set_id: int, hk_data: bytes
):
+ if tcp_server_sensor_temperatures is None:
+ tcp_server_sensor_temperatures = TmTcpServer("localhost", 7305)
+ if tcp_server_device_temperatures is None:
+ tcp_server_device_temperatures = TmTcpServer("localhost", 7306)
if set_id == SetIds.SENSOR_TEMPERATURE_SET:
pw = PrintWrapper(printer)
pw.dlog("Received sensor temperature data")
diff --git a/pus_tm/tcp_server_objects.py b/pus_tm/tcp_server_objects.py
index 72a0d93..3378511 100644
--- a/pus_tm/tcp_server_objects.py
+++ b/pus_tm/tcp_server_objects.py
@@ -1,4 +1,6 @@
+from typing import Optional
+
from pus_tm.tm_tcp_server import TmTcpServer
-tcp_server_sensor_temperatures = TmTcpServer("localhost", 7305)
-tcp_server_device_temperatures = TmTcpServer("localhost", 7306)
+tcp_server_sensor_temperatures: Optional[TmTcpServer] = None
+tcp_server_device_temperatures: Optional[TmTcpServer] = None