From 6841a10446f27ab18e573d1d5b5e6e0da7566552 Mon Sep 17 00:00:00 2001 From: Erik van der Zalm Date: Sat, 19 Nov 2011 16:16:26 +0100 Subject: [PATCH] Fixed max/min temperature bug --- Marlin/temperature.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index b08a800f68..857814732b 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -99,9 +99,9 @@ static unsigned long previous_millis_heater, previous_millis_bed_heater; #endif //MINTEMP #ifdef HEATER_0_MAXTEMP #ifdef HEATER_0_USES_AD595 - static int maxttemp_0 = 0; - #else static int maxttemp_0 = 16383; + #else + static int maxttemp_0 = 0; #endif #endif //MAXTEMP @@ -114,9 +114,9 @@ static unsigned long previous_millis_heater, previous_millis_bed_heater; #endif //MINTEMP #ifdef HEATER_1_MAXTEMP #ifdef HEATER_1_USES_AD595 - static int maxttemp_1 = 0; - #else static int maxttemp_1 = 16383; + #else + static int maxttemp_1 = 0; #endif #endif //MAXTEMP @@ -129,9 +129,9 @@ static unsigned long previous_millis_heater, previous_millis_bed_heater; #endif //BED_MINTEMP #ifdef BED_MAXTEMP #ifdef BED_USES_AD595 - static int bed_maxttemp = 0; - #else static int bed_maxttemp = 16383; + #else + static int bed_maxttemp = 0; #endif #endif //BED_MAXTEMP @@ -377,7 +377,7 @@ void tp_init() TIMSK0 |= (1<