Updated line in streaming script.
This commit is contained in:
parent
e8a6bfd179
commit
f40078110e
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ for line in f:
|
||||||
grbl_out = ''
|
grbl_out = ''
|
||||||
while sum(c_line) >= RX_BUFFER_SIZE-1 | s.inWaiting() :
|
while sum(c_line) >= RX_BUFFER_SIZE-1 | s.inWaiting() :
|
||||||
out_temp = s.readline().strip() # Wait for grbl response
|
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
|
print " Debug: ",out_temp # Debug response
|
||||||
else :
|
else :
|
||||||
grbl_out += out_temp;
|
grbl_out += out_temp;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue