Fix compile with PLR, no fan (#20096)

This commit is contained in:
ellensp 2020-11-12 09:35:13 +13:00 committed by Scott Lahteine
parent cf43c9901f
commit ac74786c2b

View File

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