Ver Fonte

Rename tp_init to soft_pwm_init for consistency

Yuri D'Elia há 2 anos atrás
pai
commit
2ca16a06cd
3 ficheiros alterados com 3 adições e 4 exclusões
  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);