support for /debug commands

This commit is contained in:
Teja 2015-09-24 12:19:46 +02:00
parent ea20be6601
commit 8eb3fd3029

View file

@ -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] : "");