Skip to content
Snippets Groups Projects
Commit f0a5b7f0 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Merge pull request #3986 from thinkyhead/rc_mbl_forward_iteration

Use memset in mbl.reset to save 58 bytes
parents a569e897 2d558624
Branches
Tags
No related merge requests found
......@@ -31,9 +31,7 @@
void mesh_bed_leveling::reset() {
status = MBL_STATUS_NONE;
z_offset = 0;
for (int8_t y = MESH_NUM_Y_POINTS; y--;)
for (int8_t x = MESH_NUM_X_POINTS; x--;)
z_values[y][x] = 0;
memset(z_values, 0, sizeof(z_values));
}
#endif // MESH_BED_LEVELING
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment