Pause automatic waveform transfers on hardware Stop
This commit is contained in:
@@ -42,9 +42,13 @@ class ScopeSession:
|
||||
if action == "shutdown":
|
||||
break
|
||||
try:
|
||||
if action == "capture" and len(args) == 4:
|
||||
value = client.capture(*args[:3])
|
||||
value = CaptureFrame(value, prepare_preview(value, args[3]))
|
||||
if action == "capture" and len(args) in (4, 5):
|
||||
automatic = len(args) == 5 and args[4]
|
||||
if automatic and not client.is_running():
|
||||
value = None
|
||||
else:
|
||||
value = client.capture(*args[:3])
|
||||
value = CaptureFrame(value, prepare_preview(value, args[3]))
|
||||
elif action == "export":
|
||||
filename, waves = args
|
||||
with open(filename, "w", newline="", encoding="utf-8-sig") as stream:
|
||||
|
||||
Reference in New Issue
Block a user