Fix G35 PROGMEM strings (#19926)
This commit is contained in:
		
							parent
							
								
									83aa3dbfa6
								
							
						
					
					
						commit
						2cae26ee35
					
				@ -129,15 +129,19 @@ void GcodeSuite::G35() {
 | 
				
			|||||||
    const float z_probed_height = probe.probe_at_point(screws_tilt_adjust_pos[i], PROBE_PT_RAISE, 0, true);
 | 
					    const float z_probed_height = probe.probe_at_point(screws_tilt_adjust_pos[i], PROBE_PT_RAISE, 0, true);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (isnan(z_probed_height)) {
 | 
					    if (isnan(z_probed_height)) {
 | 
				
			||||||
      SERIAL_ECHOPAIR("G35 failed at point ", int(i), " (", tramming_point_name[i], ")");
 | 
					      SERIAL_ECHOPAIR("G35 failed at point ", int(i), " (");
 | 
				
			||||||
 | 
					      SERIAL_ECHOPGM_P((char *)pgm_read_ptr(&tramming_point_name[i]));
 | 
				
			||||||
 | 
					      SERIAL_CHAR(')');
 | 
				
			||||||
      SERIAL_ECHOLNPAIR_P(SP_X_STR, screws_tilt_adjust_pos[i].x, SP_Y_STR, screws_tilt_adjust_pos[i].y);
 | 
					      SERIAL_ECHOLNPAIR_P(SP_X_STR, screws_tilt_adjust_pos[i].x, SP_Y_STR, screws_tilt_adjust_pos[i].y);
 | 
				
			||||||
      err_break = true;
 | 
					      err_break = true;
 | 
				
			||||||
      break;
 | 
					      break;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (DEBUGGING(LEVELING)) {
 | 
					    if (DEBUGGING(LEVELING)) {
 | 
				
			||||||
      DEBUG_ECHOPAIR("Probing point ", int(i), " (", tramming_point_name[i], ")");
 | 
					      DEBUG_ECHOPAIR("Probing point ", int(i), " (");
 | 
				
			||||||
      SERIAL_ECHOLNPAIR_P(SP_X_STR, screws_tilt_adjust_pos[i].x, SP_Y_STR, screws_tilt_adjust_pos[i].y, SP_Z_STR, z_probed_height);
 | 
					      DEBUG_PRINT_P((char *)pgm_read_ptr(&tramming_point_name[i]));
 | 
				
			||||||
 | 
					      DEBUG_CHAR(')');
 | 
				
			||||||
 | 
					      DEBUG_ECHOLNPAIR_P(SP_X_STR, screws_tilt_adjust_pos[i].x, SP_Y_STR, screws_tilt_adjust_pos[i].y, SP_Z_STR, z_probed_height);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    z_measured[i] = z_probed_height;
 | 
					    z_measured[i] = z_probed_height;
 | 
				
			||||||
@ -155,9 +159,9 @@ void GcodeSuite::G35() {
 | 
				
			|||||||
      const float decimal_part = adjust - float(full_turns);
 | 
					      const float decimal_part = adjust - float(full_turns);
 | 
				
			||||||
      const int minutes = trunc(decimal_part * 60.0f);
 | 
					      const int minutes = trunc(decimal_part * 60.0f);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      SERIAL_ECHOPAIR("Turn ", tramming_point_name[i],
 | 
					      SERIAL_ECHOPGM("Turn ");
 | 
				
			||||||
             " ", (screw_thread & 1) == (adjust > 0) ? "CCW" : "CW",
 | 
					      SERIAL_ECHOPGM_P((char *)pgm_read_ptr(&tramming_point_name[i]));
 | 
				
			||||||
             " by ", abs(full_turns), " turns");
 | 
					      SERIAL_ECHOPAIR(" ", (screw_thread & 1) == (adjust > 0) ? "CCW" : "CW", " by ", abs(full_turns), " turns");
 | 
				
			||||||
      if (minutes) SERIAL_ECHOPAIR(" and ", abs(minutes), " minutes");
 | 
					      if (minutes) SERIAL_ECHOPAIR(" and ", abs(minutes), " minutes");
 | 
				
			||||||
      if (ENABLED(REPORT_TRAMMING_MM)) SERIAL_ECHOPAIR(" (", -diff, "mm)");
 | 
					      if (ENABLED(REPORT_TRAMMING_MM)) SERIAL_ECHOPAIR(" (", -diff, "mm)");
 | 
				
			||||||
      SERIAL_EOL();
 | 
					      SERIAL_EOL();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user