Skip to content

Commit 03b8463

Browse files
stefanmarksdelta-G
authored andcommitted
Clearing canvas buffer in ArduinoLEDMatrix::clear() in addition to frame buffer (arduino#335)
* Also clearing canvas buffer in ArduinoLEDMatrix::clear()
1 parent 4e0d605 commit 03b8463

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/Arduino_LED_Matrix/src/Arduino_LED_Matrix.h

+3
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ class ArduinoLEDMatrix
260260
0x00000000
261261
};
262262
loadFrame(fullOff);
263+
#ifdef MATRIX_WITH_ARDUINOGRAPHICS
264+
memset(_canvasBuffer, 0, sizeof(_canvasBuffer));
265+
#endif
263266
}
264267

265268

0 commit comments

Comments
 (0)