* 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 */
| 40 | * M32 S60 !PATH/TO/FILE.GCO# ; Start FILE.GCO at byte 60 |
| 41 | */ |
| 42 | void 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 |
nothing calls this directly
no test coverage detected