Give default value to z.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user