MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / startOrResumeFilePrinting

Method startOrResumeFilePrinting

Marlin/src/sd/cardreader.cpp:709–715  ·  view source on GitHub ↗

* Start or resume a media print by setting the sdprinting flag. * The file browser pre-sort is also purged to free up memory, * since you cannot browse files during active printing. * Used by M24 and anywhere Start / Resume applies. */

Source from the content-addressed store, hash-verified

707 * Used by M24 and anywhere Start / Resume applies.
708 */
709void CardReader::startOrResumeFilePrinting() {
710 if (isMounted()) {
711 flag.sdprinting = true;
712 flag.sdprintdone = false;
713 TERN_(SD_RESORT, flush_presort());
714 }
715}
716
717//
718// Run tasks upon finishing or aborting a file print.

Callers 8

M32Method · 0.80
M24Method · 0.80
btn_ok_event_cbFunction · 0.80
gcode_previewFunction · 0.80
wifi_gcode_execFunction · 0.80
handleDataMethod · 0.80
printScreenControlMethod · 0.80
resume_printFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected