Fix for PR #4453 (Improved MANUAL_[XYZ]_HOME_POS)
This commit is contained in:
		
							parent
							
								
									2f76138645
								
							
						
					
					
						commit
						b8c112c490
					
				| @ -99,18 +99,34 @@ | |||||||
|   #ifdef MANUAL_X_HOME_POS |   #ifdef MANUAL_X_HOME_POS | ||||||
|     #define X_HOME_POS MANUAL_X_HOME_POS |     #define X_HOME_POS MANUAL_X_HOME_POS | ||||||
|   #elif ENABLED(BED_CENTER_AT_0_0) |   #elif ENABLED(BED_CENTER_AT_0_0) | ||||||
|  |     #if ENABLED(DELTA) | ||||||
|  |       #define X_HOME_POS 0 | ||||||
|  |     #else | ||||||
|       #define X_HOME_POS ((X_MAX_LENGTH) * (X_HOME_DIR) * 0.5) |       #define X_HOME_POS ((X_MAX_LENGTH) * (X_HOME_DIR) * 0.5) | ||||||
|  |     #endif | ||||||
|  |   #else | ||||||
|  |     #if ENABLED(DELTA) | ||||||
|  |       #define X_HOME_POS ((X_MAX_LENGTH) * 0.5) | ||||||
|     #else |     #else | ||||||
|       #define X_HOME_POS (X_HOME_DIR < 0 ? X_MIN_POS : X_MAX_POS) |       #define X_HOME_POS (X_HOME_DIR < 0 ? X_MIN_POS : X_MAX_POS) | ||||||
|     #endif |     #endif | ||||||
|  |   #endif | ||||||
| 
 | 
 | ||||||
|   #ifdef MANUAL_Y_HOME_POS |   #ifdef MANUAL_Y_HOME_POS | ||||||
|     #define Y_HOME_POS MANUAL_Y_HOME_POS |     #define Y_HOME_POS MANUAL_Y_HOME_POS | ||||||
|   #elif ENABLED(BED_CENTER_AT_0_0) |   #elif ENABLED(BED_CENTER_AT_0_0) | ||||||
|  |     #if ENABLED(DELTA) | ||||||
|  |       #define Y_HOME_POS 0 | ||||||
|  |     #else | ||||||
|       #define Y_HOME_POS ((Y_MAX_LENGTH) * (Y_HOME_DIR) * 0.5) |       #define Y_HOME_POS ((Y_MAX_LENGTH) * (Y_HOME_DIR) * 0.5) | ||||||
|  |     #endif | ||||||
|  |   #else | ||||||
|  |     #if ENABLED(DELTA) | ||||||
|  |       #define Y_HOME_POS ((Y_MAX_LENGTH) * 0.5) | ||||||
|     #else |     #else | ||||||
|       #define Y_HOME_POS (Y_HOME_DIR < 0 ? Y_MIN_POS : Y_MAX_POS) |       #define Y_HOME_POS (Y_HOME_DIR < 0 ? Y_MIN_POS : Y_MAX_POS) | ||||||
|     #endif |     #endif | ||||||
|  |   #endif | ||||||
| 
 | 
 | ||||||
|   #ifdef MANUAL_Z_HOME_POS |   #ifdef MANUAL_Z_HOME_POS | ||||||
|     #define Z_HOME_POS MANUAL_Z_HOME_POS |     #define Z_HOME_POS MANUAL_Z_HOME_POS | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user