private void sendDebug() { if (con.serial == null && !con.isVirtualActive) { return; } int v = 0; if (switchEcho.On) { v += 1; } if (switchInfo.On) { v += 2; } if (switchErrors.On) { v += 4; } if (switchDryRun.On) { v += 8; } con.GetInjectLock(); con.injectManualCommand("M111 S" + v); con.ReturnInjectLock(); }
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"); } }