Make mbl.has_mesh() a method

This commit is contained in:
Scott Lahteine
2018-01-07 00:06:21 -06:00
parent be555e3578
commit ffeb4495fe
4 changed files with 10 additions and 19 deletions

View File

@@ -50,6 +50,12 @@ public:
static void reset();
FORCE_INLINE static bool has_mesh() {
for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++)
for (uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++)
if (z_values[x][y]) return true;
return false;
}
static void set_z(const int8_t px, const int8_t py, const float &z) { z_values[px][py] = z; }