Преглед на файлове

-disable TEMP Min MAX Kill while using PS_ON Pin

ON GEN7 there is no temperature reading when power is off.. so Marlin
would kill itself. There seems to be an update from "Traumflug" on GEN7
using standby VCC for thermistors.
Christian Thalhammer преди 12 години
родител
ревизия
14702089ee
променени са 1 файла, в които са добавени 12 реда и са изтрити 4 реда
  1. 12
    4
      Marlin/temperature.cpp

+ 12
- 4
Marlin/temperature.cpp Целия файл

@@ -763,13 +763,21 @@ ISR(TIMER0_COMPB_vect)
763 763
     for(unsigned char e = 0; e < EXTRUDERS; e++) {
764 764
        if(current_raw[e] >= maxttemp[e]) {
765 765
           target_raw[e] = 0;
766
-          max_temp_error(e);
767
-          kill();;
766
+          #if (PS_ON != -1)
767
+          {
768
+            max_temp_error(e);
769
+            kill();;
770
+          }
771
+          #endif
768 772
        }
769 773
        if(current_raw[e] <= minttemp[e]) {
770 774
           target_raw[e] = 0;
771
-          min_temp_error(e);
772
-          kill();
775
+          #if (PS_ON != -1)
776
+          {
777
+            min_temp_error(e);
778
+            kill();
779
+          }
780
+          #endif
773 781
        }
774 782
     }
775 783
   

Loading…
Отказ
Запис