Update powerloss.cpp

This commit is contained in:
Scott Lahteine 2020-11-11 14:34:00 -06:00 committed by GitHub
parent af61c78e22
commit 82fd3edda6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -435,7 +435,7 @@ void PrintJobRecovery::resume() {
// Restore print cooling fan speeds // Restore print cooling fan speeds
#if HAS_FAN #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);