🐛 Fix Robin Nano v3 filament runout pins (#23344)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							d034a9c295
						
					
				
				
					commit
					2c12171f46
				
			@@ -49,7 +49,7 @@
 | 
				
			|||||||
  #define Z_MIN_PROBE_PIN                     46  // JP4, Tfeed1
 | 
					  #define Z_MIN_PROBE_PIN                     46  // JP4, Tfeed1
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
 | 
					#ifndef FIL_RUNOUT_PIN
 | 
				
			||||||
  #define FIL_RUNOUT_PIN                      44  // JP3, Tfeed2
 | 
					  #define FIL_RUNOUT_PIN                      44  // JP3, Tfeed2
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -546,14 +546,17 @@
 | 
				
			|||||||
  #undef K_MAX_PIN
 | 
					  #undef K_MAX_PIN
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Filament Sensor first pin alias
 | 
					 | 
				
			||||||
#if HAS_FILAMENT_SENSOR
 | 
					#if HAS_FILAMENT_SENSOR
 | 
				
			||||||
  #define FIL_RUNOUT1_PIN FIL_RUNOUT_PIN
 | 
					  #define FIL_RUNOUT1_PIN FIL_RUNOUT_PIN  // Filament Sensor first pin alias
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
  #undef FIL_RUNOUT_PIN
 | 
					  #undef FIL_RUNOUT_PIN
 | 
				
			||||||
  #undef FIL_RUNOUT1_PIN
 | 
					  #undef FIL_RUNOUT1_PIN
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if NUM_RUNOUT_SENSORS < 2
 | 
				
			||||||
 | 
					  #undef FIL_RUNOUT2_PIN
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef LCD_PINS_D4
 | 
					#ifndef LCD_PINS_D4
 | 
				
			||||||
  #define LCD_PINS_D4 -1
 | 
					  #define LCD_PINS_D4 -1
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -134,7 +134,6 @@
 | 
				
			|||||||
#define FAN_PIN                                9
 | 
					#define FAN_PIN                                9
 | 
				
			||||||
#define FAN1_PIN                              12
 | 
					#define FAN1_PIN                              12
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define NUM_RUNOUT_SENSORS                     2
 | 
					 | 
				
			||||||
#define FIL_RUNOUT_PIN                        22
 | 
					#define FIL_RUNOUT_PIN                        22
 | 
				
			||||||
#define FIL_RUNOUT2_PIN                       21
 | 
					#define FIL_RUNOUT2_PIN                       21
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -121,10 +121,8 @@
 | 
				
			|||||||
  #define Z_MIN_PROBE_PIN                     49
 | 
					  #define Z_MIN_PROBE_PIN                     49
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if HAS_FILAMENT_SENSOR
 | 
					#ifndef FIL_RUNOUT_PIN
 | 
				
			||||||
  #ifndef FIL_RUNOUT_PIN
 | 
					 | 
				
			||||||
  #define FIL_RUNOUT_PIN               Y_MIN_PIN
 | 
					  #define FIL_RUNOUT_PIN               Y_MIN_PIN
 | 
				
			||||||
  #endif
 | 
					 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -109,10 +109,8 @@
 | 
				
			|||||||
  #define Z_MIN_PROBE_PIN                     49
 | 
					  #define Z_MIN_PROBE_PIN                     49
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if HAS_FILAMENT_SENSOR
 | 
					#ifndef FIL_RUNOUT_PIN
 | 
				
			||||||
  #ifndef FIL_RUNOUT_PIN
 | 
					 | 
				
			||||||
  #define FIL_RUNOUT_PIN               Y_MIN_PIN
 | 
					  #define FIL_RUNOUT_PIN               Y_MIN_PIN
 | 
				
			||||||
  #endif
 | 
					 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -68,7 +68,7 @@
 | 
				
			|||||||
  #if SERVO0_PIN == BEEPER_PIN
 | 
					  #if SERVO0_PIN == BEEPER_PIN
 | 
				
			||||||
    #undef BEEPER_PIN
 | 
					    #undef BEEPER_PIN
 | 
				
			||||||
  #endif
 | 
					  #endif
 | 
				
			||||||
#elif ENABLED(FILAMENT_RUNOUT_SENSOR)
 | 
					#elif HAS_FILAMENT_SENSOR
 | 
				
			||||||
  #ifndef FIL_RUNOUT_PIN
 | 
					  #ifndef FIL_RUNOUT_PIN
 | 
				
			||||||
    #define FIL_RUNOUT_PIN                    27
 | 
					    #define FIL_RUNOUT_PIN                    27
 | 
				
			||||||
  #endif
 | 
					  #endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -145,10 +145,10 @@
 | 
				
			|||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef FIL_RUNOUT_PIN
 | 
					#ifndef FIL_RUNOUT_PIN
 | 
				
			||||||
  #define FIL_RUNOUT_PIN            MT_DET_1_PIN
 | 
					  #define FIL_RUNOUT_PIN                    PA4
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
#ifndef FIL_RUNOUT2_PIN
 | 
					#ifndef FIL_RUNOUT2_PIN
 | 
				
			||||||
  #define FIL_RUNOUT2_PIN           MT_DET_2_PIN
 | 
					  #define FIL_RUNOUT2_PIN                   PE6
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef POWER_LOSS_PIN
 | 
					#ifndef POWER_LOSS_PIN
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user