Skip to content
Snippets Groups Projects
Commit 63085462 authored by Guenter Quast's avatar Guenter Quast
Browse files

rpOsci: simplified logic

parent 965b4dc6
No related branches found
No related tags found
No related merge requests found
......@@ -250,13 +250,15 @@ class rpControl(QMainWindow, Ui_MCPHA):
self.reset_osc()
if self.osc_start:
self.start_osc()
if not self.osc_waiting:
return
# check status
self.read_status()
if not self.read_data(self.status):
self.log.print("failed to read status")
return
if self.osc_waiting and not self.status[8] & 1:
self.command(20, 0, 0)
if not self.status[8] & 1:
self.command(20, 0, 0) # read oscilloscope data
if self.read_data(self.osc.buffer):
self.osc.update()
self.mark_reset_osc()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment