Rename tp_init to soft_pwm_init for consistency

This commit is contained in:
Yuri D'Elia 2022-05-15 19:01:50 +02:00
parent b56d31b5b3
commit 2ca16a06cd
3 changed files with 3 additions and 4 deletions

View file

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

View file

@ -799,7 +799,7 @@ static void updateTemperaturesFromRawValues()
#endif //DEBUG_HEATER_BED_SIM #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)) #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 //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 #endif //PINDA_THERMISTOR

View file

@ -39,7 +39,7 @@
// public functions // 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. void manage_heater(); //it is critical that this is called periodically.
extern bool checkAllHotends(void); extern bool checkAllHotends(void);