mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Fix unsigned/signed comparison in fanPin loop
This commit is contained in:
parent
d07d85ac9f
commit
37ac540a26
@ -479,7 +479,7 @@ int Temperature::getHeaterPower(int heater) {
|
||||
}
|
||||
|
||||
uint8_t fanDone = 0;
|
||||
for (int8_t f = 0; f < COUNT(fanPin); f++) {
|
||||
for (uint8_t f = 0; f < COUNT(fanPin); f++) {
|
||||
int8_t pin = fanPin[f];
|
||||
if (pin >= 0 && !TEST(fanDone, fanBit[f])) {
|
||||
unsigned char newFanSpeed = TEST(fanState, fanBit[f]) ? EXTRUDER_AUTO_FAN_SPEED : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user