PL PCDU parameter update #247

Merged
muellerr merged 5 commits from pl-pcdu-param-update into main 2023-10-24 11:57:09 +02:00
Showing only changes of commit b45b0b2271 - Show all commits

View File

@ -304,7 +304,7 @@ def pack_pl_pcdu_commands( # noqa C901: Complexity is okay here.
if op_code == OpCode.UPDATE_V_LOWER_LIMIT: if op_code == OpCode.UPDATE_V_LOWER_LIMIT:
q.add_log_cmd(Info.UPDATE_V_LOWER_LIMIT) q.add_log_cmd(Info.UPDATE_V_LOWER_LIMIT)
print("Select device to update lower voltage limit for: ") print("Select device to update lower voltage limit for: ")
param_id = dev_select_to_lower_u_update_param_id(dev_select_prompt(True)) param_id = dev_select_to_lower_u_update_param_id(dev_select_prompt(False))
new_param_value = float( new_param_value = float(
input("Please specify new parameter value as a double: ") input("Please specify new parameter value as a double: ")
) )
@ -316,7 +316,7 @@ def pack_pl_pcdu_commands( # noqa C901: Complexity is okay here.
if op_code == OpCode.UPDATE_V_UPPER_LIMIT: if op_code == OpCode.UPDATE_V_UPPER_LIMIT:
q.add_log_cmd(Info.UPDATE_V_UPPER_LIMIT) q.add_log_cmd(Info.UPDATE_V_UPPER_LIMIT)
print("Select device to update upper voltage limit for: ") print("Select device to update upper voltage limit for: ")
param_id = dev_select_to_upper_u_update_param_id(dev_select_prompt(True)) param_id = dev_select_to_upper_u_update_param_id(dev_select_prompt(False))
new_param_value = float( new_param_value = float(
input("Please specify new parameter value as a double: ") input("Please specify new parameter value as a double: ")
) )