[2.0.x] Enhancements to FILAMENT_RUNOUT_SENSOR (#12069)
- Added FILAMENT_RUNOUT_DISTANCE_MM option - Added FILAMENT_MOTION_SENSOR option
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							cce4931342
						
					
				
				
					commit
					056561df93
				
			@@ -986,6 +986,18 @@
 | 
			
		||||
  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
 | 
			
		||||
  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
 | 
			
		||||
  #define FILAMENT_RUNOUT_SCRIPT "M600"
 | 
			
		||||
 | 
			
		||||
  // After a runout is detected, continue printing this length of filament
 | 
			
		||||
  // before executing the runout script. Useful for a sensor at the end of
 | 
			
		||||
  // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
 | 
			
		||||
  //#define FILAMENT_RUNOUT_DISTANCE_MM 25
 | 
			
		||||
 | 
			
		||||
  #ifdef FILAMENT_RUNOUT_DISTANCE_MM
 | 
			
		||||
    // Enable this option to use an encoder disc that toggles the runout pin
 | 
			
		||||
    // as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
 | 
			
		||||
    // large enough to avoid false positives.)
 | 
			
		||||
    //#define FILAMENT_MOTION_SENSOR
 | 
			
		||||
  #endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
//===========================================================================
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user