瀏覽代碼

clean up and changes from testing

Mark Finn 11 年之前
父節點
當前提交
d197f8504b
共有 2 個文件被更改,包括 8 次插入5 次删除
  1. 3
    4
      Marlin/Marlin.pde
  2. 5
    1
      Marlin/temperature.cpp

+ 3
- 4
Marlin/Marlin.pde 查看文件

@@ -1000,14 +1000,13 @@ void process_commands()
1000 1000
         SERIAL_ERROR_START;
1001 1001
         SERIAL_ERRORLNPGM(MSG_ERR_NO_THERMISTORS);
1002 1002
       #endif
1003
-      #ifdef PIDTEMP
1003
+
1004 1004
         SERIAL_PROTOCOLPGM(" @:");
1005 1005
         SERIAL_PROTOCOL(getHeaterPower(tmp_extruder));  
1006
-      #endif
1007
-      #ifdef PIDTEMPBED
1006
+
1008 1007
         SERIAL_PROTOCOLPGM(" B@:");
1009 1008
         SERIAL_PROTOCOL(getHeaterPower(-1));  
1010
-      #endif
1009
+
1011 1010
         SERIAL_PROTOCOLLN("");
1012 1011
       return;
1013 1012
       break;

+ 5
- 1
Marlin/temperature.cpp 查看文件

@@ -99,6 +99,8 @@ static volatile bool temp_meas_ready = false;
99 99
   static float pid_error_bed;
100 100
   static float temp_iState_min_bed;
101 101
   static float temp_iState_max_bed;
102
+#else //PIDTEMPBED
103
+	static unsigned long  previous_millis_bed_heater;
102 104
 #endif //PIDTEMPBED
103 105
   static unsigned char soft_pwm[EXTRUDERS];
104 106
   static unsigned char soft_pwm_bed;
@@ -640,9 +642,11 @@ void tp_init()
640 642
 #ifdef PIDTEMP
641 643
     temp_iState_min[e] = 0.0;
642 644
     temp_iState_max[e] = PID_INTEGRAL_DRIVE_MAX / Ki;
645
+#endif //PIDTEMP
646
+#ifdef PIDTEMPBED
643 647
     temp_iState_min_bed = 0.0;
644 648
     temp_iState_max_bed = PID_INTEGRAL_DRIVE_MAX / bedKi;
645
-#endif //PIDTEMP
649
+#endif //PIDTEMPBED
646 650
   }
647 651
 
648 652
   #if (HEATER_0_PIN > -1) 

Loading…
取消
儲存