kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
- Fixed a division by zero when updating step size
rodzic
a4bd7d9db0
commit
5d3b159e13
|
@ -839,8 +839,9 @@ class NanoVNASaver(QtWidgets.QWidget):
|
|||
return
|
||||
if self.sweepCountInput.text().isdigit():
|
||||
segments = int(self.sweepCountInput.text())
|
||||
fstep = fspan / (segments * 101)
|
||||
self.sweepStepLabel.setText(self.formatShortFrequency(fstep) + "/step")
|
||||
if segments > 0:
|
||||
fstep = fspan / (segments * 101)
|
||||
self.sweepStepLabel.setText(self.formatShortFrequency(fstep) + "/step")
|
||||
|
||||
@staticmethod
|
||||
def formatFrequency(freq):
|
||||
|
|
Ładowanie…
Reference in New Issue