Skip to content

Commit

Permalink
- Minor errors in the calibration procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
mihtjel committed Sep 27, 2019
1 parent a430a75 commit adcd6bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NanoVNASaver/Calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def automaticCalibrationStep(self):
"The required steps for a 1-port calibration are now complete.\n\n" +
"If you wish to continue and perform a 2-port calibration, press " +
"\"Yes\". To apply the 1-port calibration and stop, press \"Apply\"",
QtWidgets.QMessageBox.Ok | QtWidgets.QMessageBox.Apply |
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.Apply |
QtWidgets.QMessageBox.Cancel)

response = continue_step.exec()
Expand All @@ -364,7 +364,7 @@ def automaticCalibrationStep(self):
self.app.worker.signals.finished.disconnect(self.automaticCalibrationStep)
self.btn_automatic.setDisabled(False)
return
elif response != QtWidgets.QMessageBox.Ok:
elif response != QtWidgets.QMessageBox.Yes:
self.btn_automatic.setDisabled(False)
self.nextStep = -1
self.app.worker.signals.finished.disconnect(self.automaticCalibrationStep)
Expand Down Expand Up @@ -426,6 +426,8 @@ def automaticCalibrationStep(self):
else:
self.calculate()
self.btn_automatic.setDisabled(False)
self.nextStep = -1
self.app.worker.signals.finished.disconnect(self.automaticCalibrationStep)
return
return

Expand Down

0 comments on commit adcd6bc

Please sign in to comment.