Merge pull request #3986 from thinkyhead/rc_mbl_forward_iteration

Use memset in mbl.reset to save 58 bytes
master
Scott Lahteine 9 years ago
commit f0a5b7f0bc

@ -31,9 +31,7 @@
void mesh_bed_leveling::reset() { void mesh_bed_leveling::reset() {
status = MBL_STATUS_NONE; status = MBL_STATUS_NONE;
z_offset = 0; z_offset = 0;
for (int8_t y = MESH_NUM_Y_POINTS; y--;) memset(z_values, 0, sizeof(z_values));
for (int8_t x = MESH_NUM_X_POINTS; x--;)
z_values[y][x] = 0;
} }
#endif // MESH_BED_LEVELING #endif // MESH_BED_LEVELING

Loading…
Cancel
Save