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
(cherry picked from commit 628ffb5
)
master
parent
656aeb0189
commit
0bb17818e1
|
@ -1563,6 +1563,15 @@ $(function() {
|
||||||
|
|
||||||
$("#terminal-send").click(function () {
|
$("#terminal-send").click(function () {
|
||||||
var command = $("#terminal-command").val();
|
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) {
|
if (command) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: AJAX_BASEURL + "control/command",
|
url: AJAX_BASEURL + "control/command",
|
||||||
|
|
|
@ -466,7 +466,6 @@ class MachineCom(object):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def _sendCommand(self, cmd):
|
def _sendCommand(self, cmd):
|
||||||
cmd = cmd.upper()
|
|
||||||
if self._serial is None:
|
if self._serial is None:
|
||||||
return
|
return
|
||||||
if 'M109' in cmd or 'M190' in cmd:
|
if 'M109' in cmd or 'M190' in cmd:
|
||||||
|
|
Loading…
Reference in New Issue