♻️ Refactor axis counts and loops
This commit is contained in:
		
				
					committed by
					
						 Scott Lahteine
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							f7d28ce1d6
						
					
				
				
					commit
					26a244325b
				
			| @@ -69,8 +69,8 @@ | ||||
|  */ | ||||
| void GcodeSuite::M290() { | ||||
|   #if ENABLED(BABYSTEP_XY) | ||||
|     LOOP_XYZ(a) | ||||
|       if (parser.seenval(XYZ_CHAR(a)) || (a == Z_AXIS && parser.seenval('S'))) { | ||||
|     LOOP_LINEAR_AXES(a) | ||||
|       if (parser.seenval(AXIS_CHAR(a)) || (a == Z_AXIS && parser.seenval('S'))) { | ||||
|         const float offs = constrain(parser.value_axis_units((AxisEnum)a), -2, 2); | ||||
|         babystep.add_mm((AxisEnum)a, offs); | ||||
|         #if ENABLED(BABYSTEP_ZPROBE_OFFSET) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user