浏览代码

-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
   

正在加载...
取消
保存