Quellcode durchsuchen

Only issue MAXTEMP when heating

Benoit Miller vor 8 Jahren
Ursprung
Commit
2aa12d78dc
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      Marlin/temperature.cpp

+ 2
- 2
Marlin/temperature.cpp Datei anzeigen

@@ -1809,7 +1809,7 @@ void Temperature::isr() {
1809 1809
 
1810 1810
     for (uint8_t e = 0; e < COUNT(temp_dir); e++) {
1811 1811
       const int tdir = temp_dir[e], rawtemp = current_temperature_raw[e] * tdir;
1812
-      if (rawtemp > maxttemp_raw[e] * tdir) max_temp_error(e);
1812
+      if (rawtemp > maxttemp_raw[e] * tdir && target_temperature[e] > 0.0f) max_temp_error(e);
1813 1813
       if (rawtemp < minttemp_raw[e] * tdir && !is_preheating(e) && target_temperature[e] > 0.0f) {
1814 1814
         #ifdef MAX_CONSECUTIVE_LOW_TEMPERATURE_ERROR_ALLOWED
1815 1815
           if (++consecutive_low_temperature_error[e] >= MAX_CONSECUTIVE_LOW_TEMPERATURE_ERROR_ALLOWED)
@@ -1828,7 +1828,7 @@ void Temperature::isr() {
1828 1828
       #else
1829 1829
         #define GEBED >=
1830 1830
       #endif
1831
-      if (current_temperature_bed_raw GEBED bed_maxttemp_raw) max_temp_error(-1);
1831
+      if (current_temperature_bed_raw GEBED bed_maxttemp_raw && target_temperature_bed > 0.0f) max_temp_error(-1);
1832 1832
       if (bed_minttemp_raw GEBED current_temperature_bed_raw && target_temperature_bed > 0.0f) min_temp_error(-1);
1833 1833
     #endif
1834 1834
 

Laden…
Abbrechen
Speichern