<font face="Arial, Verdana">A colleague wrote me some alternative lines in the commands.cpp file:</font>
From ine 1777:
#if FAN_PIN > -1 && FEATURE_FAN_CONTROL
case 106: // M106 Fan On
if(!(Printer::flag2 & PRINTER_FLAG2_IGNORE_M106_COMMAND)) {
if(com->hasP() && com->P == 1)
// setFan2Speed(com->hasS() ? com->S : 255);
analogWrite(9, com->hasS() ? com->S : 255);
else
// setFanSpeed(com->hasS() ? com->S : 255);
analogWrite(8, com->hasS() ? com->S : 255);
}
break;
case 107: // M107 Fan Off
if(com->hasP() && com->P == 1)
setFan2Speed(0);
else
setFanSpeed(0);
break;