Add HAS_FAN and others
This commit is contained in:
		@@ -24,7 +24,7 @@
 | 
			
		||||
#include "../../MarlinCore.h" // for pin_is_protected
 | 
			
		||||
#include "../../inc/MarlinConfig.h"
 | 
			
		||||
 | 
			
		||||
#if FAN_COUNT > 0
 | 
			
		||||
#if HAS_FAN
 | 
			
		||||
  #include "../../module/temperature.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@@ -64,7 +64,7 @@ void GcodeSuite::M42() {
 | 
			
		||||
  if (!parser.seenval('S')) return;
 | 
			
		||||
  const byte pin_status = parser.value_byte();
 | 
			
		||||
 | 
			
		||||
  #if FAN_COUNT > 0
 | 
			
		||||
  #if HAS_FAN
 | 
			
		||||
    switch (pin) {
 | 
			
		||||
      #if HAS_FAN0
 | 
			
		||||
        case FAN0_PIN: thermalManager.fan_speed[0] = pin_status; return;
 | 
			
		||||
 
 | 
			
		||||
@@ -92,7 +92,7 @@ void GcodeSuite::M81() {
 | 
			
		||||
  print_job_timer.stop();
 | 
			
		||||
  planner.finish_and_disable();
 | 
			
		||||
 | 
			
		||||
  #if FAN_COUNT > 0
 | 
			
		||||
  #if HAS_FAN
 | 
			
		||||
    thermalManager.zero_fan_speeds();
 | 
			
		||||
    #if ENABLED(PROBING_FANS_OFF)
 | 
			
		||||
      thermalManager.fans_paused = false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user