Skip to content
Snippets Groups Projects
Commit 318326da authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Fix #20 - stop button doesn't send command.

parent a6706a80
No related merge requests found
......@@ -172,12 +172,15 @@ class Experiment(object):
scan = 0
while True:
if self.main_pipe.poll():
print "abort"
if self.main_pipe.recv() == 'a':
self.serial.write('a')
return False
for line in self.serial:
if self.main_pipe.poll():
if self.main_pipe.recv() == 'a':
self.serial.write('a')
return False
if line.startswith('B'):
self.main_pipe.send(self.data_handler(
(scan, self.serial.read(size=self.databytes))))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment