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: