Browse Source

shifting cursor position for printing "mm" in xyz details menu

PavelSindler 7 years ago
parent
commit
05bfa39df1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/ultralcd.cpp

+ 1 - 1
Firmware/ultralcd.cpp

@@ -1359,7 +1359,7 @@ void lcd_service_mode_show_result() {
 		if(distance_from_min[i] < 200) {
 			lcd_print_at_PGM(8, i + 1, PSTR(""));
 			lcd.print(distance_from_min[i]);
-			lcd_print_at_PGM(13, i + 1, PSTR("mm"));
+			lcd_print_at_PGM((distance_from_min[i] < 0) ? 14 : 13, i + 1, PSTR("mm"));
 		} else lcd_print_at_PGM(8, i + 1, PSTR("N/A"));
 	}
 	delay_keep_alive(500);