Browse Source

Tweak UBL G29 status print

Scott Lahteine 6 years ago
parent
commit
9d9e2deb9b
1 changed files with 5 additions and 7 deletions
  1. 5
    7
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

+ 5
- 7
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp View File

@@ -752,16 +752,15 @@
752 752
       save_ubl_active_state_and_disable();  // No bed level correction so only raw data is obtained
753 753
       DEPLOY_PROBE();
754 754
 
755
-      uint8_t count = GRID_MAX_POINTS, current = 1;
755
+      uint8_t count = GRID_MAX_POINTS;
756 756
 
757 757
       do {
758
-        current = (GRID_MAX_POINTS) - count + 1;
759
-
760 758
         if (do_ubl_mesh_map) display_map(g29_map_type);
761 759
 
762
-        SERIAL_ECHOLNPAIR("\nProbing mesh point ", int(current), "/", int(GRID_MAX_POINTS), ".\n");
760
+        const int current = (GRID_MAX_POINTS) - count + 1;
761
+        SERIAL_ECHOLNPAIR("\nProbing mesh point ", current, "/", int(GRID_MAX_POINTS), ".\n");
763 762
         #if HAS_DISPLAY
764
-          ui.status_printf_P(0, PSTR(MSG_PROBING_MESH " %i/%i"), int(current), int(GRID_MAX_POINTS));
763
+          ui.status_printf_P(0, PSTR(MSG_PROBING_MESH " %i/%i"), current, int(GRID_MAX_POINTS));
765 764
         #endif
766 765
 
767 766
         #if HAS_LCD_MENU
@@ -1500,8 +1499,7 @@
1500 1499
                 DEBUG_ECHO_F(rx, 7);
1501 1500
                 DEBUG_CHAR(',');
1502 1501
                 DEBUG_ECHO_F(ry, 7);
1503
-                DEBUG_ECHOPGM(")   logical: ");
1504
-                DEBUG_CHAR('(');
1502
+                DEBUG_ECHOPGM(")   logical: (");
1505 1503
                 DEBUG_ECHO_F(LOGICAL_X_POSITION(rx), 7);
1506 1504
                 DEBUG_CHAR(',');
1507 1505
                 DEBUG_ECHO_F(LOGICAL_Y_POSITION(ry), 7);

Loading…
Cancel
Save