瀏覽代碼

-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…
取消
儲存