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

Method M32

Marlin/src/gcode/sd/M32.cpp:42–57  ·  view source on GitHub ↗

* M32: Select file and start SD Print * * Examples: * * M32 !PATH/TO/FILE.GCO# ; Start FILE.GCO * M32 P !PATH/TO/FILE.GCO# ; Start FILE.GCO as a procedure * M32 S60 !PATH/TO/FILE.GCO# ; Start FILE.GCO at byte 60 */

Source from the content-addressed store, hash-verified

40 * M32 S60 !PATH/TO/FILE.GCO# ; Start FILE.GCO at byte 60
41 */
42void GcodeSuite::M32() {
43 if (card.isStillPrinting()) planner.synchronize();
44
45 if (card.isMounted()) {
46 const uint8_t call_procedure = parser.boolval('P');
47
48 card.openFileRead(parser.string_arg, call_procedure);
49
50 if (parser.seenval('S')) card.setIndex(parser.value_long());
51
52 card.startOrResumeFilePrinting();
53
54 // Procedure calls count as normal print time.
55 if (!call_procedure) startOrResumeJob();
56 }
57}
58
59#endif // HAS_MEDIA_SUBCALLS

Callers

nothing calls this directly

Calls 10

startOrResumeJobFunction · 0.85
isStillPrintingMethod · 0.80
isMountedMethod · 0.80
boolvalMethod · 0.80
openFileReadMethod · 0.80
seenvalMethod · 0.80
setIndexMethod · 0.80
value_longMethod · 0.80
synchronizeMethod · 0.45

Tested by

no test coverage detected