From bd2800731278349b6194bcb1f736154c514dca4d Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sun, 15 May 2022 00:54:34 +0200 Subject: [PATCH] Rename check_fans>readFanTach manageFans>checkFans --- Firmware/fancheck.cpp | 4 ++-- Firmware/fancheck.h | 4 ++-- Firmware/temperature.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Firmware/fancheck.cpp b/Firmware/fancheck.cpp index 6a337740..adae2bdc 100755 --- a/Firmware/fancheck.cpp +++ b/Firmware/fancheck.cpp @@ -219,7 +219,7 @@ void checkExtruderAutoFans() #endif // any extruder auto fan pins set #if (defined(FANCHECK) && defined(TACH_0) && (TACH_0 > -1)) -void check_fans() { +void readFanTach() { #ifdef FAN_SOFT_PWM if (READ(TACH_0) != fan_state[0]) { if(fan_measuring) fan_edge_counter[0] ++; @@ -238,7 +238,7 @@ void check_fans() { } #endif //TACH_0 -void manageFans() +void checkFans() { #ifndef DEBUG_DISABLE_FANCHECK #if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1) diff --git a/Firmware/fancheck.h b/Firmware/fancheck.h index 6f47efbd..841ffe78 100755 --- a/Firmware/fancheck.h +++ b/Firmware/fancheck.h @@ -13,7 +13,7 @@ enum { }; extern volatile uint8_t fan_check_error; -void check_fans(); +void readFanTach(); #endif //(defined(TACH_0)) #ifdef EXTRUDER_ALTFAN_DETECT @@ -32,5 +32,5 @@ void setExtruderAutoFanState(uint8_t state); void checkExtruderAutoFans(); #endif -void manageFans(); +void checkFans(); void hotendFanSetFullSpeed(); diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index a1741edd..935ea1ad 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -550,7 +550,7 @@ void manage_heater() } } // End extruder for loop - manageFans(); + checkFans(); #ifndef PIDTEMPBED if(_millis() - previous_millis_bed_heater < BED_CHECK_INTERVAL) @@ -1768,7 +1768,7 @@ FORCE_INLINE static void soft_pwm_isr() if (!SdFatUtil::test_stack_integrity()) stack_error(); #if (defined(FANCHECK) && defined(TACH_0) && (TACH_0 > -1)) - check_fans(); + readFanTach(); #endif //(defined(TACH_0)) }