From e7474efed9fd39c6ea4438655c20d21f205733ff Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 25 May 2026 14:54:43 +0200 Subject: [PATCH] =?UTF-8?q?gui:=20file=20delay=2010=20ms=20resolution,=20r?= =?UTF-8?q?ange=200=E2=80=931=20s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- gui/connection_tab.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gui/connection_tab.py b/gui/connection_tab.py index 847789a..7f3a4f2 100644 --- a/gui/connection_tab.py +++ b/gui/connection_tab.py @@ -113,12 +113,12 @@ class ConnectionRow(QWidget): file_l.addWidget(browse_btn) file_l.addWidget(QLabel("Delay:")) self._delay_spin = QDoubleSpinBox() - self._delay_spin.setRange(0.0, 10.0) - self._delay_spin.setSingleStep(0.1) - self._delay_spin.setDecimals(1) - self._delay_spin.setValue(1.0) + self._delay_spin.setRange(0.0, 1.0) + self._delay_spin.setSingleStep(0.01) + self._delay_spin.setDecimals(2) + self._delay_spin.setValue(0.0) self._delay_spin.setSuffix(" s") - self._delay_spin.setFixedWidth(72) + self._delay_spin.setFixedWidth(84) file_l.addWidget(self._delay_spin) self._stack.addWidget(file_w) @@ -189,7 +189,7 @@ class ConnectionRow(QWidget): serial_port = self._ser_combo.currentText().strip(), baud_rate = int(self._baud_combo.currentText()), file_path = self._file_edit.text().strip(), - delay = self._delay_spin.value(), + delay = max(0.0001, self._delay_spin.value()), ) def get_receiver_id(self) -> str: