Fixes somes compiler warnings

This commit is contained in:
João Brázio
2016-06-23 02:22:17 +01:00
parent f30df89ee1
commit 664232140d
5 changed files with 12 additions and 8 deletions

View File

@@ -462,7 +462,7 @@ int Temperature::getHeaterPower(int heater) {
EXTRUDER_3_AUTO_FAN_PIN == EXTRUDER_2_AUTO_FAN_PIN ? 2 : 3
};
uint8_t fanState = 0;
for (int f = 0; f <= HOTENDS; f++) {
for (int f = 0; f < HOTENDS; f++) {
if (current_temperature[f] > EXTRUDER_AUTO_FAN_TEMPERATURE)
SBI(fanState, fanBit[f]);
}