Fix handling of PID mode configuration retrieval

Updated the PID mode configuration to directly use the combobox object instead of invoking it as a function. Adjusted references accordingly to ensure proper mapping and alignment with the updated usage.
This commit is contained in:
edo-neo 2025-03-06 12:09:49 +01:00
parent 55c4be281b
commit d56329655e
2 changed files with 3 additions and 3 deletions

View File

@ -302,7 +302,7 @@ class TecnaMarpossProvasetT3(ModbusComponent):
recipe_barcode = f"j{recipe.part_number}"[:16].encode("ascii")
recipe_barcode += b"\x00" * (24 - len(recipe_barcode))
test_flags = 0b0110100001010000 if (step.spec.get("autotest", False) in ["ko_check"]) else 0b0110000001010000
pid_mode_text = step.spec["pid_mod_config"]() # Get the selected text from the combobox
pid_mode_text = step.spec["pid_mod_config"] # Get the selected text from the combobox
pid_mode_value = { # Mapping of text to numeric values
"AUTO": 5,
"FAST": 0,

View File

@ -27,7 +27,7 @@ class Leak_Step_Editor(Editor):
"chan_sel": self.chan_sel_sb,
"ext_blow_time": self.ext_blow_time_sb,
"ext_flush_time": self.ext_flush_time_sb,
#PID
# PID
"pid_pressure_correction": self.test_pid_correction_sb,
"pid_mod_config": self.pid_mode_sel.currentText(),
"pid_mod_config": self.pid_mode_sel,
})