small tweak

This commit is contained in:
Robin Müller 2023-01-26 13:45:59 +01:00
parent 69e2b82c8e
commit 05f22ae4ce
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -152,12 +152,10 @@ def pack_syrlinks_command(
q.add_log_cmd(f"Testing Syrlinks with object id: {object_id.as_hex_string}") q.add_log_cmd(f"Testing Syrlinks with object id: {object_id.as_hex_string}")
if op_code == OpCode.OFF: if op_code == OpCode.OFF:
q.add_log_cmd(f"{prefix}: {Info.OFF}") q.add_log_cmd(f"{prefix}: {Info.OFF}")
data = pack_mode_data(obyt, Mode.OFF, 0) q.add_pus_tc(create_mode_command(obyt, Mode.OFF, 0))
q.add_pus_tc(PusTelecommand(service=200, subservice=1, app_data=data))
if op_code == OpCode.ON: if op_code == OpCode.ON:
q.add_log_cmd(f"{prefix}: {Info.ON}") q.add_log_cmd(f"{prefix}: {Info.ON}")
data = pack_mode_data(obyt, Mode.ON, 0) q.add_pus_tc(create_mode_command(obyt, Mode.ON, 0))
q.add_pus_tc(PusTelecommand(service=200, subservice=1, app_data=data))
if op_code == OpCode.NORMAL: if op_code == OpCode.NORMAL:
normal_mode_cmd(q, Info.NORMAL, Submode.DEFAULT) normal_mode_cmd(q, Info.NORMAL, Submode.DEFAULT)
if op_code == OpCode.NORMAL_RX_ONLY: if op_code == OpCode.NORMAL_RX_ONLY: