Use IS_SD_PRINTING() more
This commit is contained in:
@ -749,7 +749,7 @@ inline void get_serial_commands() {
|
||||
|
||||
card.printingHasFinished();
|
||||
|
||||
if (card.sdprinting)
|
||||
if (IS_SD_PRINTING())
|
||||
sd_count = 0; // If a sub-file was printing, continue from call point
|
||||
else {
|
||||
SERIAL_PROTOCOLLNPGM(MSG_FILE_PRINTED);
|
||||
@ -888,7 +888,7 @@ void advance_command_queue() {
|
||||
else {
|
||||
gcode.process_next_command();
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
if (card.cardOK && card.sdprinting) save_job_recovery_info();
|
||||
if (card.cardOK && IS_SD_PRINTING()) save_job_recovery_info();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user