diff --git a/DrawGcode.py b/DrawGcode.py index 3d6544a..d361f13 100644 --- a/DrawGcode.py +++ b/DrawGcode.py @@ -91,7 +91,7 @@ def file_reader(filename): elif "M280" in line: if "P0" in line and "S" in line: s = readKey(line, "S") - if s >= 40: + if s >= 35: pen = True elif s == 0: pen = False diff --git a/README.md b/README.md index b044df7..0afee93 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ A simple program that allows the graphical preview of .gcode files by utilising Mainly written for internal use in teaching the workings of G-code. Since it is written for use with a plotter only 2D G-codes are supported. The pen is controlled via M280 P0 S? commands -S>40 is interpreted as pen down, S=0 is interpreted as pen up. +S>35 is interpreted as pen down, S=0 is interpreted as pen up. Supported commands: G28