From 37ac540a269ccfb5e75eaa723421b1c6f76def94 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 24 Aug 2016 21:34:30 -0500 Subject: [PATCH] Fix unsigned/signed comparison in fanPin loop --- Marlin/temperature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index b3775ba6a..353732dfa 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -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;