Fix power loss recovery with SINGLENOZZLE (#14033)

2.0.x
GUEST.it 6 years ago committed by Scott Lahteine
parent efe651e749
commit 7907eec04c

@ -170,8 +170,8 @@ void PrintJobRecovery::save(const bool force/*=false*/, const bool save_queue/*=
#endif #endif
info.feedrate = uint16_t(feedrate_mm_s * 60.0f); info.feedrate = uint16_t(feedrate_mm_s * 60.0f);
#if HOTENDS > 1 #if EXTRUDERS > 1
info.active_hotend = active_extruder; info.active_extruder = active_extruder;
#endif #endif
HOTEND_LOOP() info.target_temperature[e] = thermalManager.temp_hotend[e].target; 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) // Select the previously active tool (with no_move)
#if EXTRUDERS > 1 #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); gcode.process_subcommands_now(cmd);
#endif #endif
@ -443,8 +443,8 @@ void PrintJobRecovery::resume() {
DEBUG_ECHOLNPAIR("feedrate: ", info.feedrate); DEBUG_ECHOLNPAIR("feedrate: ", info.feedrate);
#if HOTENDS > 1 #if EXTRUDERS > 1
DEBUG_ECHOLNPAIR("active_hotend: ", int(info.active_hotend)); DEBUG_ECHOLNPAIR("active_extruder: ", int(info.active_extruder));
#endif #endif
DEBUG_ECHOPGM("target_temperature: "); DEBUG_ECHOPGM("target_temperature: ");

@ -51,8 +51,8 @@ typedef struct {
uint16_t feedrate; uint16_t feedrate;
#if HOTENDS > 1 #if EXTRUDERS > 1
uint8_t active_hotend; uint8_t active_extruder;
#endif #endif
int16_t target_temperature[HOTENDS]; int16_t target_temperature[HOTENDS];

Loading…
Cancel
Save