Robby Candra 5 лет назад
Родитель
Сommit
7360e9343a
1 измененных файлов: 7 добавлений и 3 удалений
  1. 7
    3
      Marlin/src/lcd/dogm/status_screen_DOGM.cpp

+ 7
- 3
Marlin/src/lcd/dogm/status_screen_DOGM.cpp Просмотреть файл

@@ -388,17 +388,21 @@ void MarlinUI::draw_status_screen() {
388 388
       #endif
389 389
       heat_bits = new_bits;
390 390
     #endif
391
+
391 392
     const xyz_pos_t lpos = current_position.asLogical();
392
-    if (showxy)
393
+    strcpy(zstring, ftostr52sp(lpos.z));
394
+
395
+    if (showxy) {
393 396
       strcpy(xstring, ftostr4sign(lpos.x));
397
+      strcpy(ystring, ftostr4sign(lpos.y));
398
+    }
394 399
     else {
395 400
       #if ENABLED(LCD_SHOW_E_TOTAL)
396 401
         const uint8_t escale = e_move_accumulator >= 100000.0f ? 10 : 1; // After 100m switch to cm
397 402
         sprintf_P(xstring, PSTR("%ld%cm"), uint32_t(_MAX(e_move_accumulator, 0.0f)) / escale, escale == 10 ? 'c' : 'm'); // 1234567mm
398 403
       #endif
399 404
     }
400
-    strcpy(ystring, ftostr4sign(lpos.y));
401
-    strcpy(zstring, ftostr52sp( lpos.z));
405
+
402 406
     #if ENABLED(FILAMENT_LCD_DISPLAY)
403 407
       strcpy(wstring, ftostr12ns(filwidth.measured_mm));
404 408
       strcpy(mstring, i16tostr3(planner.volumetric_percent(parser.volumetric_enabled)));

Загрузка…
Отмена
Сохранить