Browse Source

-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 years ago
parent
commit
14702089ee
1 changed files with 12 additions and 4 deletions
  1. 12
    4
      Marlin/temperature.cpp

+ 12
- 4
Marlin/temperature.cpp View File

@@ -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…
Cancel
Save