Browse Source

Fix compile with PLR, no fan (#20096)

vanilla_fb_2.0.x
ellensp 4 years ago
committed by GitHub
parent
commit
7216b8f804
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      Marlin/src/feature/powerloss.cpp

14
Marlin/src/feature/powerloss.cpp

@ -433,13 +433,15 @@ void PrintJobRecovery::resume() {
#endif
// Restore print cooling fan speeds
FANS_LOOP(i) {
uint8_t f = info.fan_speed[i];
if (f) {
sprintf_P(cmd, PSTR("M106 P%i S%i"), i, f);
gcode.process_subcommands_now(cmd);
#if HAS_FAN
FANS_LOOP(i) {
const int f = info.fan_speed[i];
if (f) {
sprintf_P(cmd, PSTR("M106 P%i S%i"), i, f);
gcode.process_subcommands_now(cmd);
}
}
}
#endif
// Restore retract and hop state
#if ENABLED(FWRETRACT)

Loading…
Cancel
Save