From f40078110eda6b8939fdda8d38d2941deec7dd71 Mon Sep 17 00:00:00 2001 From: Sonny Jeon Date: Mon, 9 Jan 2012 18:51:53 -0700 Subject: [PATCH] Updated line in streaming script. --- script/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/stream.py b/script/stream.py index 32971ff..b614549 100755 --- a/script/stream.py +++ b/script/stream.py @@ -59,7 +59,7 @@ for line in f: grbl_out = '' while sum(c_line) >= RX_BUFFER_SIZE-1 | s.inWaiting() : out_temp = s.readline().strip() # Wait for grbl response - if out_temp not in ['ok','error'] : + if out_temp.find('ok') < 0 and out_temp.find('error') < 0 : print " Debug: ",out_temp # Debug response else : grbl_out += out_temp;