Use array refs where possible

This commit is contained in:
Scott Lahteine 2017-12-09 05:11:22 -06:00
parent 8244284116
commit da2eaa6b09
5 changed files with 30 additions and 30 deletions

View file

@ -319,7 +319,7 @@
return i < GRID_MAX_POINTS_Y ? pgm_read_float(&_mesh_index_to_ypos[i]) : MESH_MIN_Y + i * (MESH_Y_DIST);
}
static bool prepare_segmented_line_to(const float rtarget[XYZE], const float &feedrate);
static bool prepare_segmented_line_to(const float (&rtarget)[XYZE], const float &feedrate);
static void line_to_destination_cartesian(const float &fr, uint8_t e);
#define _CMPZ(a,b) (z_values[a][b] == z_values[a][b+1])