From 7907eec04cbea44748cf2730a04cb74dc6a5485a Mon Sep 17 00:00:00 2001 From: "GUEST.it" <3944655+guestisp@users.noreply.github.com> Date: Sat, 18 May 2019 01:47:15 +0200 Subject: [PATCH] Fix power loss recovery with SINGLENOZZLE (#14033) --- Marlin/src/feature/power_loss_recovery.cpp | 10 +++++----- Marlin/src/feature/power_loss_recovery.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Marlin/src/feature/power_loss_recovery.cpp b/Marlin/src/feature/power_loss_recovery.cpp index 9ef681c63..906315d28 100644 --- a/Marlin/src/feature/power_loss_recovery.cpp +++ b/Marlin/src/feature/power_loss_recovery.cpp @@ -170,8 +170,8 @@ void PrintJobRecovery::save(const bool force/*=false*/, const bool save_queue/*= #endif info.feedrate = uint16_t(feedrate_mm_s * 60.0f); - #if HOTENDS > 1 - info.active_hotend = active_extruder; + #if EXTRUDERS > 1 + info.active_extruder = active_extruder; #endif HOTEND_LOOP() info.target_temperature[e] = thermalManager.temp_hotend[e].target; @@ -282,7 +282,7 @@ void PrintJobRecovery::resume() { // Select the previously active tool (with no_move) #if EXTRUDERS > 1 - sprintf_P(cmd, PSTR("T%i S"), info.active_hotend); + sprintf_P(cmd, PSTR("T%i S"), info.active_extruder); gcode.process_subcommands_now(cmd); #endif @@ -443,8 +443,8 @@ void PrintJobRecovery::resume() { DEBUG_ECHOLNPAIR("feedrate: ", info.feedrate); - #if HOTENDS > 1 - DEBUG_ECHOLNPAIR("active_hotend: ", int(info.active_hotend)); + #if EXTRUDERS > 1 + DEBUG_ECHOLNPAIR("active_extruder: ", int(info.active_extruder)); #endif DEBUG_ECHOPGM("target_temperature: "); diff --git a/Marlin/src/feature/power_loss_recovery.h b/Marlin/src/feature/power_loss_recovery.h index 5e6c7e572..e7f8c0912 100644 --- a/Marlin/src/feature/power_loss_recovery.h +++ b/Marlin/src/feature/power_loss_recovery.h @@ -51,8 +51,8 @@ typedef struct { uint16_t feedrate; - #if HOTENDS > 1 - uint8_t active_hotend; + #if EXTRUDERS > 1 + uint8_t active_extruder; #endif int16_t target_temperature[HOTENDS];