clear_printer_error
Clears a latched printer error so the printer accepts new prints. Acknowledges firmware-reported faults without fixing the root cause; use when printer_status shows error but the printer's own screen is clear.
Instructions
Clear a latched error on the PRINTER so it will accept prints again.
Different from ``clear_emergency_stop``, which releases Kiln's own safety
latch. This one acknowledges an error the FIRMWARE is holding — the state
the machine itself reports — after which pre-flight checks pass again.
Reach for it when ``printer_status`` reports ``error`` and the printer's
own screen looks fine. That combination is not a Kiln bug; the firmware
really is still reporting the fault, and on some machines dismissing the
on-screen message clears the notification without clearing the state.
Before this existed there was no way out of that from Kiln at all — only a
power cycle — so one bad print locked the machine out of every later one.
What it does NOT do is fix the cause. A printer that halted for a real
fault will halt again the moment it retries, which is the honest outcome:
this reconciles Kiln with the machine, it does not overrule the machine.
Nothing is cleared while a print is running.
:param printer_name: Target printer. Omit for the default printer.
:returns: Whether the acknowledgement was sent, plus the printer state
read back afterwards so the caller can see whether it took.
See also: ``printer_status()``, ``preflight_check()``, ``emergency_stop()``.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| printer_name | No |