Marcio T
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
5 deletions
-
Marlin/src/gcode/sd/M24_M25.cpp
|
|
@ -82,17 +82,17 @@ void GcodeSuite::M24() { |
|
|
|
*/ |
|
|
|
void GcodeSuite::M25() { |
|
|
|
|
|
|
|
// Set initial pause flag to prevent more commands from landing in the queue while we try to pause
|
|
|
|
#if ENABLED(SDSUPPORT) |
|
|
|
if (IS_SD_PRINTING()) card.pauseSDPrint(); |
|
|
|
#endif |
|
|
|
|
|
|
|
#if ENABLED(PARK_HEAD_ON_PAUSE) |
|
|
|
|
|
|
|
M125(); |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
// Set initial pause flag to prevent more commands from landing in the queue while we try to pause
|
|
|
|
#if ENABLED(SDSUPPORT) |
|
|
|
if (IS_SD_PRINTING()) card.pauseSDPrint(); |
|
|
|
#endif |
|
|
|
|
|
|
|
#if ENABLED(POWER_LOSS_RECOVERY) |
|
|
|
if (recovery.enabled) recovery.save(true); |
|
|
|
#endif |
|
|
|