diff --git a/octoprint/static/js/ui.js b/octoprint/static/js/ui.js index 2ccb7be..0e632f4 100644 --- a/octoprint/static/js/ui.js +++ b/octoprint/static/js/ui.js @@ -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", diff --git a/octoprint/util/comm.py b/octoprint/util/comm.py index 4deb8bf..9ef8893 100644 --- a/octoprint/util/comm.py +++ b/octoprint/util/comm.py @@ -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: