Use memset in mbl.reset to save 58 bytes

This commit is contained in:
Scott Lahteine 2016-06-08 16:05:18 -07:00
parent 3d56b9d127
commit 2d55862499

View File

@ -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