Skip to content

Commit 2422e02

Browse files
Debugging?
1 parent 5e817dc commit 2422e02

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

interfaces/obc_gs_interface/commands/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ def create_cmd_arm(cmd_arm: c_uint, cmd_arm_id: c_uint32, unixtime_of_execution:
428428
"""
429429
cmd_msg = CmdMsg(unixtime_of_execution)
430430
cmd_msg.id = CmdCallbackId.CMD_ARM
431-
cmd_msg.cmdArm.cmd_arm = c_uint(cmd_arm.value)
432-
cmd_msg.cmdArm.cmd_arm_id = c_uint32(cmd_arm_id.value)
431+
cmd_msg.cmdArm.cmd_arm = c_uint(cmd_arm)
432+
cmd_msg.cmdArm.cmd_arm_id = c_uint32(cmd_arm_id)
433433
return cmd_msg
434434

435435

interfaces/obc_gs_interface/commands/command_response_classes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def __str__(self) -> str:
114114
Overriding the str method for a better representation of what's happening
115115
"""
116116
formatted_string = super().__str__()
117-
formatted_string += f"cmd_arm: {self.cmd_arm}\n"
118-
formatted_string += f"cmd_arm_id: {self.cmd_arm_id}\n"
117+
formatted_string += "Cmd Arm: " + str(self.cmd_arm) + "\n"
118+
formatted_string += "Cmd Arm Id:" + str(self.cmd_arm_id) + "\n"
119119
return formatted_string
120120

121121

@@ -133,8 +133,8 @@ def __str__(self) -> str:
133133
Overriding the str method for a better representation of what's happening
134134
"""
135135
formatted_string = super().__str__()
136-
formatted_string += f"cmd_execute: {self.cmd_execute}\n"
137-
formatted_string += f"cmd_exec_id: {self.cmd_exec_id}\n"
136+
formatted_string += "Cmd Execute: " + str(self.cmd_execute) + "\n"
137+
formatted_string += "Cmd Execute Id:" + str(self.cmd_exec_id) + "\n"
138138
return formatted_string
139139

140140

0 commit comments

Comments
 (0)