From 22ac4c4d54ace60f8af0c5824d832b4e58b0836a Mon Sep 17 00:00:00 2001 From: Michael Dryden Date: Sat, 17 May 2014 15:10:54 -0400 Subject: [PATCH] Unpacking binary now done in main process. --- dstatInterface/dstat_comm.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/dstatInterface/dstat_comm.py b/dstatInterface/dstat_comm.py index 8bc8aba..a381e6e 100644 --- a/dstatInterface/dstat_comm.py +++ b/dstatInterface/dstat_comm.py @@ -41,20 +41,15 @@ class dataCapture(mp.Process): self.serial = ser_instance self.recv_p, self.send_p = pipe -# self.data_queue = mp.Queue() def run(self): sys.stdout.write('[%s] running ... process id: %s\n' % (self.name, os.getpid())) - -# self.recv_p.close() while True: for line in self.serial: if line.startswith('B'): - voltage, current = struct.unpack(' .2): self.plot.updateline(self, 0) self.plot.redraw() -- GitLab