Add a ZERO macro to clear arrays

This commit is contained in:
Scott Lahteine
2016-10-22 10:07:18 -05:00
parent 627f9d5285
commit 5f5a55a0de
6 changed files with 8 additions and 7 deletions

View File

@ -31,7 +31,7 @@
void mesh_bed_leveling::reset() {
status = MBL_STATUS_NONE;
z_offset = 0;
memset(z_values, 0, sizeof(z_values));
ZERO(z_values);
}
#endif // MESH_BED_LEVELING