浏览代码

Rename tp_init to soft_pwm_init for consistency

Yuri D'Elia 2 年之前
父节点
当前提交
2ca16a06cd
共有 3 个文件被更改,包括 3 次插入4 次删除
  1. 1 1
      Firmware/Marlin_main.cpp
  2. 1 2
      Firmware/temperature.cpp
  3. 1 1
      Firmware/temperature.h

+ 1 - 1
Firmware/Marlin_main.cpp

@@ -1280,7 +1280,7 @@ void setup()
     SdFatUtil::set_stack_guard();
 
     // Initialize temperature loop
-    tp_init();
+    soft_pwm_init();
 
 #ifdef EXTRUDER_ALTFAN_DETECT
 	SERIAL_ECHORPGM(_n("Extruder fan type: "));

+ 1 - 2
Firmware/temperature.cpp

@@ -799,7 +799,7 @@ static void updateTemperaturesFromRawValues()
 #endif //DEBUG_HEATER_BED_SIM
 }
 
-void tp_init()
+void soft_pwm_init()
 {
 #if MB(RUMBA) && ((TEMP_SENSOR_0==-1)||(TEMP_SENSOR_1==-1)||(TEMP_SENSOR_2==-1)||(TEMP_SENSOR_BED==-1))
   //disable RUMBA JTAG in case the thermocouple extension is plugged on top of JTAG connector
@@ -2036,4 +2036,3 @@ bool has_temperature_compensation()
 }
 #endif //PINDA_THERMISTOR
 
-

+ 1 - 1
Firmware/temperature.h

@@ -39,7 +39,7 @@
 
 
 // public functions
-void tp_init();  //initialize the heating
+void soft_pwm_init(); //initialize the soft pwm isr
 void manage_heater(); //it is critical that this is called periodically.
 
 extern bool checkAllHotends(void);