From 2ca16a06cd1c6e4a35a3e6ff6302b7ccff991669 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sun, 15 May 2022 19:01:50 +0200 Subject: [PATCH] Rename tp_init to soft_pwm_init for consistency --- Firmware/Marlin_main.cpp | 2 +- Firmware/temperature.cpp | 3 +-- Firmware/temperature.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 60f1ba8a..c2153524 100644 --- a/Firmware/Marlin_main.cpp +++ b/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: ")); diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 4f23054b..512afa97 100755 --- a/Firmware/temperature.cpp +++ b/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 - diff --git a/Firmware/temperature.h b/Firmware/temperature.h index eb267058..0ac1a4a9 100755 --- a/Firmware/temperature.h +++ b/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);