A single SERIAL_ECHO macro type (#12557)
This commit is contained in:
		@@ -293,10 +293,9 @@ void GcodeSuite::G2_G3(const bool clockwise) {
 | 
			
		||||
      #if ENABLED(ARC_P_CIRCLES)
 | 
			
		||||
        // P indicates number of circles to do
 | 
			
		||||
        int8_t circles_to_do = parser.byteval('P');
 | 
			
		||||
        if (!WITHIN(circles_to_do, 0, 100)) {
 | 
			
		||||
          SERIAL_ERROR_START();
 | 
			
		||||
          SERIAL_ERRORLNPGM(MSG_ERR_ARC_ARGS);
 | 
			
		||||
        }
 | 
			
		||||
        if (!WITHIN(circles_to_do, 0, 100))
 | 
			
		||||
          SERIAL_ERROR_MSG(MSG_ERR_ARC_ARGS);
 | 
			
		||||
 | 
			
		||||
        while (circles_to_do--)
 | 
			
		||||
          plan_arc(current_position, arc_offset, clockwise);
 | 
			
		||||
      #endif
 | 
			
		||||
@@ -305,11 +304,8 @@ void GcodeSuite::G2_G3(const bool clockwise) {
 | 
			
		||||
      plan_arc(destination, arc_offset, clockwise);
 | 
			
		||||
      reset_stepper_timeout();
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
      // Bad arguments
 | 
			
		||||
      SERIAL_ERROR_START();
 | 
			
		||||
      SERIAL_ERRORLNPGM(MSG_ERR_ARC_ARGS);
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
      SERIAL_ERROR_MSG(MSG_ERR_ARC_ARGS);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -50,8 +50,7 @@ void GcodeSuite::G5() {
 | 
			
		||||
 | 
			
		||||
    #if ENABLED(CNC_WORKSPACE_PLANES)
 | 
			
		||||
      if (workspace_plane != PLANE_XY) {
 | 
			
		||||
        SERIAL_ERROR_START();
 | 
			
		||||
        SERIAL_ERRORLNPGM(MSG_ERR_BAD_PLANE_MODE);
 | 
			
		||||
        SERIAL_ERROR_MSG(MSG_ERR_BAD_PLANE_MODE);
 | 
			
		||||
        return;
 | 
			
		||||
      }
 | 
			
		||||
    #endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user