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

Method endFilePrintNow

Marlin/src/sd/cardreader.cpp:720–726  ·  view source on GitHub ↗

Run tasks upon finishing or aborting a file print.

Source from the content-addressed store, hash-verified

718// Run tasks upon finishing or aborting a file print.
719//
720void CardReader::endFilePrintNow(TERN_(SD_RESORT, const bool re_sort/*=false*/)) {
721 TERN_(ADVANCED_PAUSE_FEATURE, did_pause_print = 0);
722 TERN_(DWIN_CREALITY_LCD, hmiFlag.print_finish = flag.sdprinting);
723 flag.abort_sd_printing = false;
724 if (isFileOpen()) myfile.close();
725 TERN_(SD_RESORT, if (re_sort) presort());
726}
727
728void CardReader::abortFilePrintNow(TERN_(SD_RESORT, const bool re_sort/*=false*/)) {
729 flag.sdprinting = flag.sdprintdone = false;

Callers

nothing calls this directly

Calls 2

ifFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected