Rename check_fans>readFanTach manageFans>checkFans

This commit is contained in:
Yuri D'Elia 2022-05-15 00:54:34 +02:00
parent 383319dbac
commit bd28007312
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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();

View File

@ -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))
}