Give default value to z.

This commit is contained in:
unlockable
2023-09-06 15:35:36 +08:00
parent 8126db644d
commit b3e4586e91

View File

@@ -476,6 +476,9 @@ void loop() {
z = round(result);
Cube::set_status(x, y, z, 3);
}
else {
z = 0;
}
Serial.print(x);
Serial.print(" ");
Serial.print(y);