Skip to content

Commit 70c0aed

Browse files
authored
Merge pull request #1050 from leonardocavagnis/fix_buffer_lvgl_h7_video
Arduino H7 Video + LVGL 9.x: Remove unused buffer
2 parents f7ff411 + 84ba561 commit 70c0aed

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)