Merge pull request #175 from henrikbrixandersen/patch-1

Handle g0 equal to g1.
master
kliment 2012-02-06 12:47:32 -08:00
commit 901023bdb7
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ class gviz(wx.Panel):
start_pos = self.hilightpos[:] if hilight else self.lastpos[:]
if gcode[0] == "g1":
if gcode[0] in [ "g0", "g1" ]:
target = _readgcode()
line = [ _x(start_pos[0]), _y(start_pos[1]), _x(target[0]), _y(target[1]) ]
if not hilight: