From 93f579086b4299caa916d72b0d2bf1cfe331fd04 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Tue, 12 May 2026 09:03:55 +0200 Subject: [PATCH] fix dual chan wip --- config/machine_settings/st-ten-6.ini | 3 ++- src/ui/test/test.py | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/config/machine_settings/st-ten-6.ini b/config/machine_settings/st-ten-6.ini index 58c31b5..f1635ff 100644 --- a/config/machine_settings/st-ten-6.ini +++ b/config/machine_settings/st-ten-6.ini @@ -17,7 +17,7 @@ digital_io: absent digital_io_flush_blow: present second_leak_test: present barcode_recipe_selection: present -external_flush_blow: present # EXTERNAL BOX CONTROLLING MULTI-CHANNEL TEST (IF PRESENT), BLOW-CLEANING AND EXTERNAL FLUSH +external_flush_blow: absent # EXTERNAL BOX CONTROLLING MULTI-CHANNEL TEST (IF PRESENT), BLOW-CLEANING AND EXTERNAL FLUSH dual_channel: present freefall: absent #fixture_id: present @@ -65,6 +65,7 @@ label_template_field: modello_etichetta description_field: descrizione [recipes_defaults] +tester_discharge_enable: yes dimensione_lotto_abilitata: tempo_soffiaggio: 5 tempo_pre_riempimento: 0 diff --git a/src/ui/test/test.py b/src/ui/test/test.py index 8829df3..5cc6e5e 100755 --- a/src/ui/test/test.py +++ b/src/ui/test/test.py @@ -1122,8 +1122,12 @@ class Test(Widget): # Process any {M43:X:Y} patterns in the barcode format processed_barcode_format = self.process_m43_patterns(self.barcode_format, context) - if processed_barcode_format is not None: - formatted_barcode = processed_barcode_format.format(**context) + + if processed_barcode_format is None: + processed_barcode_format = self.print_step.spec.get("barcode", "-") + + formatted_barcode = processed_barcode_format.format(**context) + context['BCODE'] = formatted_barcode self.printed_barcode = formatted_barcode if self.archived is not None: