update code base to Marlin 2.0.9.2
This commit is contained in:
9
Marlin/src/gcode/sd/M32.cpp
Executable file → Normal file
9
Marlin/src/gcode/sd/M32.cpp
Executable file → Normal file
@@ -16,13 +16,13 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "../../inc/MarlinConfig.h"
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#if HAS_MEDIA_SUBCALLS
|
||||
|
||||
#include "../gcode.h"
|
||||
#include "../../sd/cardreader.h"
|
||||
@@ -38,7 +38,6 @@
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
void GcodeSuite::M32() {
|
||||
if (IS_SD_PRINTING()) planner.synchronize();
|
||||
@@ -50,11 +49,11 @@ void GcodeSuite::M32() {
|
||||
|
||||
if (parser.seenval('S')) card.setIndex(parser.value_long());
|
||||
|
||||
card.startFileprint();
|
||||
card.startOrResumeFilePrinting();
|
||||
|
||||
// Procedure calls count as normal print time.
|
||||
if (!call_procedure) startOrResumeJob();
|
||||
}
|
||||
}
|
||||
|
||||
#endif // SDSUPPORT
|
||||
#endif // HAS_MEDIA_SUBCALLS
|
||||
|
Reference in New Issue
Block a user