Fix compile with PLR, no fan (#20096)
This commit is contained in:
parent
bd6e60f56d
commit
7216b8f804
@ -433,13 +433,15 @@ void PrintJobRecovery::resume() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Restore print cooling fan speeds
|
// Restore print cooling fan speeds
|
||||||
FANS_LOOP(i) {
|
#if HAS_FAN
|
||||||
uint8_t f = info.fan_speed[i];
|
FANS_LOOP(i) {
|
||||||
if (f) {
|
const int f = info.fan_speed[i];
|
||||||
sprintf_P(cmd, PSTR("M106 P%i S%i"), i, f);
|
if (f) {
|
||||||
gcode.process_subcommands_now(cmd);
|
sprintf_P(cmd, PSTR("M106 P%i S%i"), i, f);
|
||||||
|
gcode.process_subcommands_now(cmd);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
#endif
|
||||||
|
|
||||||
// Restore retract and hop state
|
// Restore retract and hop state
|
||||||
#if ENABLED(FWRETRACT)
|
#if ENABLED(FWRETRACT)
|
||||||
|
Loading…
Reference in New Issue
Block a user