Use IS_SD_PRINTING() more

This commit is contained in:
Scott Lahteine
2018-11-06 20:52:39 -06:00
parent 4dbaa6369f
commit 488a17b3f5
7 changed files with 11 additions and 10 deletions

View File

@ -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
}