Ensure TMC + LIN_ADVANCE pulse length (#15807)
This commit is contained in:
		
				
					committed by
					
						 Scott Lahteine
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							5e5045c4ee
						
					
				
				
					commit
					b9703fdf36
				
			| @@ -578,9 +578,13 @@ | ||||
|     #define MINIMUM_STEPPER_PULSE 2 | ||||
|   #elif HAS_DRIVER(A4988) || HAS_DRIVER(A5984) | ||||
|     #define MINIMUM_STEPPER_PULSE 1 | ||||
|   #elif HAS_DRIVER(LV8729) | ||||
|     #define MINIMUM_STEPPER_PULSE 0 | ||||
|   #elif TRINAMICS | ||||
|     #if ENABLED(LIN_ADVANCE) && (HAS_TMC_STANDALONE_E_DRIVER || (HAS_TMC_E_DRIVER && DISABLED(SQUARE_WAVE_STEPPING))) | ||||
|       #define MINIMUM_STEPPER_PULSE 1 | ||||
|     #else | ||||
|       #define MINIMUM_STEPPER_PULSE 0 | ||||
|     #endif | ||||
|   #elif HAS_DRIVER(LV8729) | ||||
|     #define MINIMUM_STEPPER_PULSE 0 | ||||
|   #else | ||||
|     #define MINIMUM_STEPPER_PULSE 2 | ||||
|   | ||||
| @@ -2546,3 +2546,11 @@ static_assert(   _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2) | ||||
|     #error "SHOW_REMAINING_TIME currently requires a Graphical LCD." | ||||
|   #endif | ||||
| #endif | ||||
|  | ||||
| #if ENABLED(LIN_ADVANCE) && MINIMUM_STEPPER_PULSE < 1 | ||||
|   #if HAS_TMC_STANDALONE_E_DRIVER | ||||
|     #error "LIN_ADVANCE with TMC standalone driver on extruder requires MIMIMUM_STEPPER_PULSE >= 1" | ||||
|   #elif HAS_TMC_E_DRIVER && DISABLED(SQUARE_WAVE_STEPPING) | ||||
|     #error "LIN_ADVANCE with TMC driver on extruder requires SQUARE_WAVE_STEPPING or MINIMUM_STEPPER_PULSE >= 1" | ||||
|   #endif | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user