replace deprecated API
This commit is contained in:
parent
c2f43c90fb
commit
a5337b5293
@ -5,7 +5,7 @@ from tmtccmd.config.tmtc import (
|
|||||||
TmtcDefinitionWrapper,
|
TmtcDefinitionWrapper,
|
||||||
OpCodeEntry,
|
OpCodeEntry,
|
||||||
)
|
)
|
||||||
from tmtccmd.pus.s17_test import pack_service_17_ping_command
|
from tmtccmd.pus.s17_test import create_service_17_ping_command
|
||||||
from tmtccmd.tc import service_provider
|
from tmtccmd.tc import service_provider
|
||||||
from tmtccmd.tc.decorator import ServiceProviderParams
|
from tmtccmd.tc.decorator import ServiceProviderParams
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ def pack_test_command(p: ServiceProviderParams):
|
|||||||
q = p.queue_helper
|
q = p.queue_helper
|
||||||
if info.op_code == OpCodes.PING:
|
if info.op_code == OpCodes.PING:
|
||||||
q.add_log_cmd("Sending PUS TC [17,1]")
|
q.add_log_cmd("Sending PUS TC [17,1]")
|
||||||
q.add_pus_tc(pack_service_17_ping_command())
|
q.add_pus_tc(create_service_17_ping_command())
|
||||||
if info.op_code == OpCodes.TRIGGER_EVENT:
|
if info.op_code == OpCodes.TRIGGER_EVENT:
|
||||||
q.add_log_cmd("Sending PUS TC Event Trigger [17, 128]")
|
q.add_log_cmd("Sending PUS TC Event Trigger [17, 128]")
|
||||||
q.add_pus_tc(PusTelecommand(service=PusService.S17_TEST, subservice=128))
|
q.add_pus_tc(PusTelecommand(service=PusService.S17_TEST, subservice=128))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user