0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 01:07:56 +01:00

NOTE: this commit is temporary and should be reverted!

Add confirmation dialog when stop print button is pressed.
Add modal alert when print is started to prevent repeated clicking of button (which in turn corrupts gcode buffering).
Change preheat M109 to M104 to speed up printing cycle.
This commit is contained in:
Wouter R 2013-10-14 16:40:48 +02:00
parent a23de73f8d
commit 07fa1f62e8
2 changed files with 22 additions and 19 deletions

View File

@ -189,6 +189,7 @@ function initButtonBehavior() {
}
function stopPrint() {
console.log("f:stopPrint() >> sendPrintCommands = " + sendPrintCommands);
if (!confirm("Weet je zeker dat je de huidige print wilt stoppen?")) return;
if (sendPrintCommands) printer.stop();
setState(Printer.STOPPING_STATE,printer.hasControl);
}
@ -229,6 +230,7 @@ function print(e) {
console.log("f:print >> not enough points!");
}
alert("Je tekening zal nu geprint worden.");
// $.post("/doodle3d.of", { data:output }, function(data) {
// btnPrint.disabled = false;

View File

@ -125,7 +125,8 @@ function generate_gcode(callback) {
// return;
console.log("printer temperature: ",temperature);
gcode.push("M109 S" + temperature); // set target temperature and wait for the extruder to reach it
gcode.push("M104 S" + temperature); // set target temperature and do not wait for the extruder to reach it
//gcode.push("M109 S" + temperature); // set target temperature and wait for the extruder to reach it
// add gcode begin commands
gcode = gcode.concat(startGcode);