Prechádzať zdrojové kódy

Merge pull request #2403 from leptun/MK3_unknown_Z_mark

Show ? near Z value if the position is unknown
DRracer 4 rokov pred
rodič
commit
df300a2488
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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)
         lcd_puts_P(_N("Z   --- "));
     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