Browse Source

Fix MIN&MAX temperatures again

replaced GE0 with th matching GEX in the second row.
added some ()
AnHardt 9 years ago
parent
commit
85f8a26ba4
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      Marlin/temperature.cpp

+ 8
- 8
Marlin/temperature.cpp View File

@@ -1539,8 +1539,8 @@ ISR(TIMER0_COMPB_vect) {
1539 1539
       #else
1540 1540
         #define GE0 >=
1541 1541
       #endif
1542
-      if (current_temperature_raw[0] GE0 maxttemp_raw[0]) max_temp_error(0);
1543
-      if (minttemp_raw[0] GE0 current_temperature_raw[0]) min_temp_error(0);
1542
+      if ((current_temperature_raw[0]) GE0 (maxttemp_raw[0])) max_temp_error(0);
1543
+      if ((minttemp_raw[0]) GE0 (current_temperature_raw[0])) min_temp_error(0);
1544 1544
     #endif
1545 1545
 
1546 1546
     #if EXTRUDERS > 1
@@ -1549,8 +1549,8 @@ ISR(TIMER0_COMPB_vect) {
1549 1549
       #else
1550 1550
         #define GE1 >=
1551 1551
       #endif
1552
-      if (current_temperature_raw[1] GE1 maxttemp_raw[1]) max_temp_error(1);
1553
-      if (minttemp_raw[1] GE0 current_temperature_raw[1]) min_temp_error(1);
1552
+      if ((current_temperature_raw[1]) GE1 (maxttemp_raw[1])) max_temp_error(1);
1553
+      if ((minttemp_raw[1]) GE1 (current_temperature_raw[1])) min_temp_error(1);
1554 1554
 
1555 1555
       #if EXTRUDERS > 2
1556 1556
         #if HEATER_2_RAW_LO_TEMP > HEATER_2_RAW_HI_TEMP
@@ -1558,8 +1558,8 @@ ISR(TIMER0_COMPB_vect) {
1558 1558
         #else
1559 1559
           #define GE2 >=
1560 1560
         #endif
1561
-        if (current_temperature_raw[2] GE2 maxttemp_raw[2]) max_temp_error(2);
1562
-        if (minttemp_raw[2] GE0 current_temperature_raw[2]) min_temp_error(2);
1561
+        if ((current_temperature_raw[2]) GE2 (maxttemp_raw[2])) max_temp_error(2);
1562
+        if ((minttemp_raw[2]) GE2 (current_temperature_raw[2])) min_temp_error(2);
1563 1563
 
1564 1564
         #if EXTRUDERS > 3
1565 1565
           #if HEATER_3_RAW_LO_TEMP > HEATER_3_RAW_HI_TEMP
@@ -1567,8 +1567,8 @@ ISR(TIMER0_COMPB_vect) {
1567 1567
           #else
1568 1568
             #define GE3 >=
1569 1569
           #endif
1570
-          if (current_temperature_raw[3] GE3 maxttemp_raw[3]) max_temp_error(3);
1571
-          if (minttemp_raw[3] GE0 current_temperature_raw[3]) min_temp_error(3);
1570
+          if ((current_temperature_raw[3]) GE3 (maxttemp_raw[3])) max_temp_error(3);
1571
+          if ((minttemp_raw[3]) GE3 (current_temperature_raw[3])) min_temp_error(3);
1572 1572
 
1573 1573
         #endif // EXTRUDERS > 3
1574 1574
       #endif // EXTRUDERS > 2

Loading…
Cancel
Save