Skip to content

Commit 84ba561

Browse files
h7 video + lvgl: remove unused buffer
1 parent f7ff411 commit 84ba561

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: libraries/Arduino_H7_Video/src/Arduino_H7_Video.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ int Arduino_H7_Video::begin() {
111111
if (buf1 == NULL) {
112112
return 2; /* Insuff memory err */
113113
}
114-
static lv_color_t * buf2 = (lv_color_t*)malloc((width() * height() / 10)); /* Declare a buffer for 1/10 screen size */
115-
if (buf2 == NULL) {
116-
return 2; /* Insuff memory err */
117-
}
118114

119115
lv_display_t *display;
120116
if(_rotated) {

0 commit comments

Comments
 (0)