Serial macros cleanup
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							f0b662ff58
						
					
				
				
					commit
					dd42831cba
				
			@@ -259,7 +259,7 @@ void GcodeSuite::G28() {
 | 
			
		||||
 | 
			
		||||
  #if HAS_HOMING_CURRENT
 | 
			
		||||
    auto debug_current = [](PGM_P const s, const int16_t a, const int16_t b){
 | 
			
		||||
      serialprintPGM(s); DEBUG_ECHOLNPAIR(" current: ", a, " -> ", b);
 | 
			
		||||
      DEBUG_ECHOPGM_P(s); DEBUG_ECHOLNPAIR(" current: ", a, " -> ", b);
 | 
			
		||||
    };
 | 
			
		||||
    #if HAS_CURRENT_HOME(X)
 | 
			
		||||
      const int16_t tmc_save_current_X = stepperX.getMilliamps();
 | 
			
		||||
 
 | 
			
		||||
@@ -93,7 +93,7 @@ void ac_cleanup(TERN_(HAS_MULTI_HOTEND, const uint8_t old_tool_index)) {
 | 
			
		||||
 | 
			
		||||
void print_signed_float(PGM_P const prefix, const float &f) {
 | 
			
		||||
  SERIAL_ECHOPGM("  ");
 | 
			
		||||
  serialprintPGM(prefix);
 | 
			
		||||
  SERIAL_ECHOPGM_P(prefix);
 | 
			
		||||
  SERIAL_CHAR(':');
 | 
			
		||||
  if (f >= 0) SERIAL_CHAR('+');
 | 
			
		||||
  SERIAL_ECHO_F(f, 2);
 | 
			
		||||
@@ -449,7 +449,7 @@ void GcodeSuite::G33() {
 | 
			
		||||
 | 
			
		||||
  // Report settings
 | 
			
		||||
  PGM_P const checkingac = PSTR("Checking... AC");
 | 
			
		||||
  serialprintPGM(checkingac);
 | 
			
		||||
  SERIAL_ECHOPGM_P(checkingac);
 | 
			
		||||
  if (verbose_level == 0) SERIAL_ECHOPGM(" (DRY-RUN)");
 | 
			
		||||
  SERIAL_EOL();
 | 
			
		||||
  ui.set_status_P(checkingac);
 | 
			
		||||
@@ -625,7 +625,7 @@ void GcodeSuite::G33() {
 | 
			
		||||
    }
 | 
			
		||||
    else { // dry run
 | 
			
		||||
      PGM_P const enddryrun = PSTR("End DRY-RUN");
 | 
			
		||||
      serialprintPGM(enddryrun);
 | 
			
		||||
      SERIAL_ECHOPGM_P(enddryrun);
 | 
			
		||||
      SERIAL_ECHO_SP(35);
 | 
			
		||||
      SERIAL_ECHOLNPAIR_F("std dev:", zero_std_dev, 3);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -93,7 +93,7 @@ void GcodeSuite::M852() {
 | 
			
		||||
 | 
			
		||||
  if (!ijk) {
 | 
			
		||||
    SERIAL_ECHO_START();
 | 
			
		||||
    serialprintPGM(GET_TEXT(MSG_SKEW_FACTOR));
 | 
			
		||||
    SERIAL_ECHOPGM_P(GET_TEXT(MSG_SKEW_FACTOR));
 | 
			
		||||
    SERIAL_ECHOPAIR_F(" XY: ", planner.skew_factor.xy, 6);
 | 
			
		||||
    #if ENABLED(SKEW_CORRECTION_FOR_Z)
 | 
			
		||||
      SERIAL_ECHOPAIR_F(" XZ: ", planner.skew_factor.xz, 6);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user