Browse Source

Fix num of digits on LCD for E and Z axis.

The number of steps per mm often contains 4 digits before the decimal point and does not require precision greater than 0.1
pull/1/head
Sergey Taranenko 12 years ago
parent
commit
8178dec4c3
  1. 4
      Marlin/ultralcd.pde

4
Marlin/ultralcd.pde

@ -1858,7 +1858,7 @@ void MainMenu::showControlMotion()
if(force_lcd_update)
{
lcd.setCursor(0,line);lcdprintPGM(MSG_ZSTEPS);
lcd.setCursor(11,line);lcd.print(ftostr52(axis_steps_per_unit[Z_AXIS]));
lcd.setCursor(11,line);lcd.print(ftostr51(axis_steps_per_unit[Z_AXIS]));
}
if((activeline!=line) )
@ -1897,7 +1897,7 @@ void MainMenu::showControlMotion()
if(force_lcd_update)
{
lcd.setCursor(0,line);lcdprintPGM(MSG_ESTEPS);
lcd.setCursor(11,line);lcd.print(ftostr52(axis_steps_per_unit[E_AXIS]));
lcd.setCursor(11,line);lcd.print(ftostr51(axis_steps_per_unit[E_AXIS]));
}
if((activeline!=line) )

Loading…
Cancel
Save