Browse Source
Bugfix: iteration invokes undefined behavior
pull/1/head
João Brázio
9 years ago
No known key found for this signature in database
GPG Key ID: F62CFD37DFFDB540
1 changed files with
1 additions and
1 deletions
-
Marlin/temperature.cpp
|
@ -342,7 +342,7 @@ int Temperature::getHeaterPower(int heater) { |
|
|
EXTRUDER_3_AUTO_FAN_PIN == EXTRUDER_2_AUTO_FAN_PIN ? 2 : 3 |
|
|
EXTRUDER_3_AUTO_FAN_PIN == EXTRUDER_2_AUTO_FAN_PIN ? 2 : 3 |
|
|
}; |
|
|
}; |
|
|
uint8_t fanState = 0; |
|
|
uint8_t fanState = 0; |
|
|
for (int f = 0; f <= 3; f++) { |
|
|
for (int f = 0; f <= EXTRUDERS; f++) { |
|
|
if (current_temperature[f] > EXTRUDER_AUTO_FAN_TEMPERATURE) |
|
|
if (current_temperature[f] > EXTRUDER_AUTO_FAN_TEMPERATURE) |
|
|
SBI(fanState, fanBit[f]); |
|
|
SBI(fanState, fanBit[f]); |
|
|
} |
|
|
} |
|
|