Skip to content

Commit

Permalink
Stop sweeping with stop button in continous mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rjordans authored and zarath committed Feb 19, 2023
1 parent 044c1c8 commit 69f5089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NanoVNASaver/SweepWorker.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def _run_loop(self) -> None:
start, stop, averages)
self.percentage = (i + 1) * 100 / sweep.segments
self.updateData(freq, values11, values21, i)
if sweep.properties.mode != SweepMode.CONTINOUS:
if sweep.properties.mode != SweepMode.CONTINOUS or self.stopped:
break

def init_data(self):
Expand Down

0 comments on commit 69f5089

Please sign in to comment.