Formatting tweaks as part of fixing issue 1497
This commit is contained in:
parent
e602c28ad9
commit
1d94d098bf
1 changed files with 4 additions and 6 deletions
|
@ -370,16 +370,14 @@ int getHeaterPower(int heater) {
|
|||
|
||||
#if HAS_AUTO_FAN
|
||||
|
||||
void setExtruderAutoFanState(int pin, bool state)
|
||||
{
|
||||
void setExtruderAutoFanState(int pin, bool state) {
|
||||
unsigned char newFanSpeed = (state != 0) ? EXTRUDER_AUTO_FAN_SPEED : 0;
|
||||
// this idiom allows both digital and PWM fan outputs (see M42 handling).
|
||||
digitalWrite(pin, newFanSpeed);
|
||||
analogWrite(pin, newFanSpeed);
|
||||
}
|
||||
|
||||
void checkExtruderAutoFans()
|
||||
{
|
||||
void checkExtruderAutoFans() {
|
||||
uint8_t fanState = 0;
|
||||
|
||||
// which fan pins need to be turned on?
|
||||
|
@ -442,7 +440,7 @@ void checkExtruderAutoFans()
|
|||
#endif
|
||||
}
|
||||
|
||||
#endif // any extruder auto fan pins set
|
||||
#endif // HAS_AUTO_FAN
|
||||
|
||||
//
|
||||
// Temperature Error Handlers
|
||||
|
@ -916,7 +914,7 @@ void tp_init() {
|
|||
#if HAS_FILAMENT_SENSOR
|
||||
ANALOG_SELECT(FILWIDTH_PIN);
|
||||
#endif
|
||||
|
||||
|
||||
#if HAS_AUTO_FAN_0
|
||||
pinMode(EXTRUDER_0_AUTO_FAN_PIN, OUTPUT);
|
||||
#endif
|
||||
|
|
Reference in a new issue