Do not convert command to send to upper case after checksum was calculated
Removed for the time being until I have a better idea on how allow stuff like "g28 x0 y0" to be autoconverted to "G28 X0 Y0" but autoconvert something like "m117 Some case sensitive text" only to "M117 Some case sensitive text" Should fix #103
This commit is contained in:
parent
b74d9d19ce
commit
628ffb5600
2 changed files with 9 additions and 1 deletions
|
|
@ -1798,6 +1798,15 @@ $(function() {
|
|||
|
||||
$("#terminal-send").click(function () {
|
||||
var command = $("#terminal-command").val();
|
||||
|
||||
/*
|
||||
var re = /^([gm][0-9]+)(\s.*)?/;
|
||||
var commandMatch = command.match(re);
|
||||
if (commandMatch != null) {
|
||||
command = commandMatch[1].toUpperCase() + ((commandMatch[2] !== undefined) ? commandMatch[2] : "");
|
||||
}
|
||||
*/
|
||||
|
||||
if (command) {
|
||||
$.ajax({
|
||||
url: AJAX_BASEURL + "control/command",
|
||||
|
|
|
|||
|
|
@ -466,7 +466,6 @@ class MachineCom(object):
|
|||
self.close()
|
||||
|
||||
def _sendCommand(self, cmd):
|
||||
cmd = cmd.upper()
|
||||
if self._serial is None:
|
||||
return
|
||||
if 'M109' in cmd or 'M190' in cmd:
|
||||
|
|
|
|||
Loading…
Reference in a new issue