Fixed custom control M114 example to also match negative coordinates

This commit is contained in:
Gina Häußge 2016-01-05 11:48:55 +01:00
parent 450e24bbc2
commit 9fd8b09e34

View file

@ -65,7 +65,7 @@ a GCODE script including user input.
children:
- name: Get Position
command: M114
regex: "X:([0-9.]+) Y:([0-9.]+) Z:([0-9.]+) E:([0-9.]+)"
regex: "X:([-+]?[0-9.]+) Y:([-+]?[0-9.]+) Z:([-+]?[0-9.]+) E:([-+]?[0-9.]+)"
template: "Position: X={0}, Y={1}, Z={2}, E={3}"
- name: Fun stuff
children: