support for /debug commands
This commit is contained in:
parent
ea20be6601
commit
8eb3fd3029
1 changed files with 2 additions and 1 deletions
|
|
@ -162,7 +162,8 @@ $(function() {
|
|||
}
|
||||
|
||||
// var re = /^([gmt][0-9]+)(\s.*)?/;
|
||||
var re = /^([gmtfs][0-9]+|\$[cinhgx#$]|[?~!])(.*)?/; // grbl style
|
||||
// gcode words | $ commands | RT | /debug
|
||||
var re = /^([gmtfs][0-9]+|\$[cinhgx#$]|[?~!]|\/)(.*)?/; // grbl style
|
||||
var commandMatch = command.match(re);
|
||||
if (commandMatch != null) {
|
||||
command = commandMatch[1].toUpperCase() + ((commandMatch[2] !== undefined) ? commandMatch[2] : "");
|
||||
|
|
|
|||
Loading…
Reference in a new issue