bugfix. don't send eeprom writing commands during printing

This commit is contained in:
Teja 2015-09-04 18:57:55 +02:00
parent d714e907c5
commit 5554fc258e
3 changed files with 5 additions and 2 deletions

View file

@ -236,7 +236,7 @@ function DataUpdater(allViewModels) {
text: msg
});
} else if (type === "RealTimeState") {
// console.log(payload);
}
var legacyEventHandlers = {

View file

@ -460,6 +460,9 @@ class MachineCom(object):
cmd = process_gcode_line(cmd)
if not cmd:
return
eepromCmd = re.search("^\$[0-9]+=.+$", cmd)
if(eepromCmd and self.isPrinting()):
self._log("Warning: Configuration changes during print are not allowed!")
if self.isPrinting() and not self.isSdFileSelected():
self._commandQueue.put((cmd, cmd_type))

View file

@ -1 +1 @@
{dirty: true, git: 694fb26, grbl: 0.9g, lastConnect: null, minor: ''}
{dirty: false, git: 694fb26, grbl: 0.9g, lastConnect: null, minor: ''}