Add delay after logging for stability.
This commit is contained in:
@@ -305,6 +305,8 @@ int random_tetris(bool init)
|
||||
if (init || gameover)
|
||||
{
|
||||
logger.log_string("Init Tetris: init=" + String(init) + ", gameover=" + String(gameover));
|
||||
delay(10);
|
||||
|
||||
// clear local game screen
|
||||
for (int h = 0; h < MATRIX_HEIGHT + 3; h++)
|
||||
{
|
||||
@@ -364,6 +366,8 @@ int random_tetris(bool init)
|
||||
{
|
||||
// no more moving blocks -> check if game over or spawn new block
|
||||
logger.log_string("Tetris: No more Mover");
|
||||
delay(10);
|
||||
|
||||
gameover = false;
|
||||
// check if game was lost -> one pixel active in 4rd row (top row on the led grid)
|
||||
for (int s = 0; s < MATRIX_WIDTH; s++)
|
||||
|
||||
Reference in New Issue
Block a user