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
Gina Häußge 2013-04-16 14:45:25 +02:00
parent 656aeb0189
commit 0bb17818e1
2 changed files with 9 additions and 1 deletions

View File

@ -1563,6 +1563,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",

View File

@ -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: