public void DoEndKillActions() { if (exclusive) // not a normal print job { exclusive = false; return; } con.GetInjectLock(); if (con.afterJobDisableExtruder) { con.injectManualCommand("M104 S0"); } if (con.afterJobDisablePrintbed) { con.injectManualCommand("M140 S0"); } con.ReturnInjectLock(); if (con.afterJobGoDispose) { con.doDispose(); } if (con.afterJobDisableMotors) { con.injectManualCommand("M84"); } }
public void DoEndKillActions() { if (exclusive) // not a normal print job { exclusive = false; return; } connection.GetInjectLock(); if (connection.afterJobDisableExtruder) { for (int i = 0; i < Main.connection.numberExtruder; i++) { connection.injectManualCommand("M104 S0 T" + i.ToString()); } } if (connection.afterJobDisablePrintbed) { connection.injectManualCommand("M140 S0"); } connection.ReturnInjectLock(); if (connection.afterJobGoDispose) { connection.doDispose(); } if (connection.afterJobDisableMotors) { connection.injectManualCommand("M84"); } }
public void DoEndKillActions() { con.GetInjectLock(); if (con.afterJobDisableExtruder) { con.injectManualCommand("M104 S0"); } if (con.afterJobDisablePrintbed) { con.injectManualCommand("M140 S0"); } con.ReturnInjectLock(); if (con.afterJobGoDispose) { con.doDispose(); } }