Fix power loss recovery with SINGLENOZZLE (#14033)
This commit is contained in:
parent
efe651e749
commit
7907eec04c
@ -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: ");
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user