Browse Source

Merge pull request #2403 from leptun/MK3_unknown_Z_mark

Show ? near Z value if the position is unknown
DRracer 4 years ago
parent
commit
df300a2488
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/ultralcd.cpp

+ 1 - 1
Firmware/ultralcd.cpp

@@ -586,7 +586,7 @@ void lcdui_print_Z_coord(void)
     if (custom_message_type == CustomMsg::MeshBedLeveling)
     if (custom_message_type == CustomMsg::MeshBedLeveling)
         lcd_puts_P(_N("Z   --- "));
         lcd_puts_P(_N("Z   --- "));
     else
     else
-		lcd_printf_P(_N("Z%6.2f "), current_position[Z_AXIS]);
+		lcd_printf_P(_N("Z%6.2f%c"), current_position[Z_AXIS], axis_known_position[Z_AXIS]?' ':'?');
 }
 }
 
 
 #ifdef PLANNER_DIAGNOSTICS
 #ifdef PLANNER_DIAGNOSTICS