From 6f27e2cdb1625657ccb8a96c3fbc9bd637f29170 Mon Sep 17 00:00:00 2001 From: Sonny Jeon Date: Mon, 9 Jan 2012 21:41:02 -0700 Subject: [PATCH] Corrected a minor streaming script character counting bug. --- script/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/stream.py b/script/stream.py index b614549..0c91a90 100755 --- a/script/stream.py +++ b/script/stream.py @@ -55,7 +55,7 @@ for line in f: l_count += 1 # Iterate line counter # l_block = re.sub('\s|\(.*?\)','',line).upper() # Strip comments/spaces/new line and capitalize l_block = line.strip() - c_line.append(len(l_block)) # Track number of characters in grbl serial read buffer + c_line.append(len(l_block)+1) # Track number of characters in grbl serial read buffer grbl_out = '' while sum(c_line) >= RX_BUFFER_SIZE-1 | s.inWaiting() : out_temp = s.readline().strip() # Wait for grbl response