Commit 96f014f0 authored by Simone Primarosa's avatar Simone Primarosa

Code clean

parent ea87d16b
...@@ -3748,7 +3748,7 @@ inline void gcode_M42() { ...@@ -3748,7 +3748,7 @@ inline void gcode_M42() {
} }
} }
#if defined(FAN_PIN) && FAN_PIN > -1 #if HAS_FAN
if (pin_number == FAN_PIN) fanSpeed = pin_status; if (pin_number == FAN_PIN) fanSpeed = pin_status;
#endif #endif
...@@ -5770,7 +5770,7 @@ void process_commands() { ...@@ -5770,7 +5770,7 @@ void process_commands() {
case 105: // M105 Read current temperature case 105: // M105 Read current temperature
gcode_M105(); break; gcode_M105(); break;
#if defined(FAN_PIN) && FAN_PIN > -1 #if HAS_FAN
case 106: //M106 Fan On case 106: //M106 Fan On
gcode_M106(); break; gcode_M106(); break;
case 107: //M107 Fan Off case 107: //M107 Fan Off
...@@ -6258,7 +6258,7 @@ void prepare_arc_move(char isclockwise) ...@@ -6258,7 +6258,7 @@ void prepare_arc_move(char isclockwise)
} }
#if defined(CONTROLLERFAN_PIN) && CONTROLLERFAN_PIN > -1 #if defined(CONTROLLERFAN_PIN) && CONTROLLERFAN_PIN > -1
#if defined(FAN_PIN) #if HAS_FAN
#if CONTROLLERFAN_PIN == FAN_PIN #if CONTROLLERFAN_PIN == FAN_PIN
#error "You cannot set CONTROLLERFAN_PIN equal to FAN_PIN" #error "You cannot set CONTROLLERFAN_PIN equal to FAN_PIN"
#endif // CONTROLLERFAN_PIN == FAN_PIN #endif // CONTROLLERFAN_PIN == FAN_PIN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment