Miscellaneous cleanup
This commit is contained in:
		@@ -36,14 +36,14 @@ void GcodeSuite::M290() {
 | 
			
		||||
  #if ENABLED(BABYSTEP_XY)
 | 
			
		||||
    for (uint8_t a = X_AXIS; a <= Z_AXIS; a++)
 | 
			
		||||
      if (parser.seenval(axis_codes[a]) || (a == Z_AXIS && parser.seenval('S'))) {
 | 
			
		||||
        const float offs = constrain(parser.value_axis_units(a), -2, 2);
 | 
			
		||||
        const float offs = constrain(parser.value_axis_units((AxisEnum)a), -2, 2);
 | 
			
		||||
        #if ENABLED(BABYSTEP_ZPROBE_OFFSET)
 | 
			
		||||
          if (a == Z_AXIS) {
 | 
			
		||||
            zprobe_zoffset += offs;
 | 
			
		||||
            refresh_zprobe_zoffset(true); // 'true' to not babystep
 | 
			
		||||
          }
 | 
			
		||||
        #endif
 | 
			
		||||
        thermalManager.babystep_axis(a, offs * planner.axis_steps_per_mm[a]);
 | 
			
		||||
        thermalManager.babystep_axis((AxisEnum)a, offs * planner.axis_steps_per_mm[a]);
 | 
			
		||||
      }
 | 
			
		||||
  #else
 | 
			
		||||
    if (parser.seenval('Z') || parser.seenval('S')) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user