Handle g0 equal to g1.

master
Henrik Brix Andersen 2012-02-06 21:46:08 +01:00
parent e5b0a4ff33
commit 3cf7e03095
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: