Parcourir la source

One more mesh_index_to_npos update

Followup to #6827
Scott Lahteine il y a 7 ans
Parent
révision
ad915b667e
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4
    4
      Marlin/ubl_motion.cpp

+ 4
- 4
Marlin/ubl_motion.cpp Voir le fichier

@@ -606,10 +606,10 @@
606 606
         cell_xi = constrain(cell_xi, 0, (GRID_MAX_POINTS_X) - 1);
607 607
         cell_yi = constrain(cell_yi, 0, (GRID_MAX_POINTS_Y) - 1);
608 608
 
609
-        const float x0 = pgm_read_float(&(mesh_index_to_xpos[cell_xi  ])),  // 64 byte table lookup avoids mul+add
610
-                    y0 = pgm_read_float(&(mesh_index_to_ypos[cell_yi  ])),  // 64 byte table lookup avoids mul+add
611
-                    x1 = pgm_read_float(&(mesh_index_to_xpos[cell_xi+1])),  // 64 byte table lookup avoids mul+add
612
-                    y1 = pgm_read_float(&(mesh_index_to_ypos[cell_yi+1]));  // 64 byte table lookup avoids mul+add
609
+        const float x0 = mesh_index_to_xpos(cell_xi),     // 64 byte table lookup avoids mul+add
610
+                    y0 = mesh_index_to_ypos(cell_yi),     // 64 byte table lookup avoids mul+add
611
+                    x1 = mesh_index_to_xpos(cell_xi + 1), // 64 byte table lookup avoids mul+add
612
+                    y1 = mesh_index_to_ypos(cell_yi + 1); // 64 byte table lookup avoids mul+add
613 613
 
614 614
         float cx = rx - x0,   // cell-relative x
615 615
               cy = ry - y0,   // cell-relative y

Chargement…
Annuler
Enregistrer