File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
ext_mod/lcd_bus/src/esp32 Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 74
74
mp_lcd_rgb_bus_obj_t * self = (mp_lcd_rgb_bus_obj_t * )self_in ;
75
75
mp_lcd_sw_rotation_init_t * init = & self -> sw_rot .init ;
76
76
77
+ free (self -> sw_rot .data .buffers .active );
78
+ self -> sw_rot .data .buffers .active = NULL ;
79
+ self -> sw_rot .data .buffers .idle = NULL ;
80
+
77
81
esp_lcd_rgb_panel_event_callbacks_t callbacks = { .on_vsync = rgb_trans_done_cb };
78
82
79
83
init -> err = esp_lcd_new_rgb_panel (self -> panel_io_config , & self -> panel_handle );
393
397
self -> panel_io_config -> flags .fb_in_psram = 1 ;
394
398
self -> panel_io_config -> flags .double_fb = 1 ;
395
399
400
+
401
+ uint8_t * tmp_buf = (uint8_t * )malloc (1 );
402
+ self -> sw_rot .data .buffers .active = tmp_buf ;
403
+ self -> sw_rot .data .buffers .idle = tmp_buf ;
404
+
396
405
LCD_DEBUG_PRINT ("h_res=%lu\n" , self -> panel_io_config -> timings .h_res )
397
406
LCD_DEBUG_PRINT ("v_res=%lu\n" , self -> panel_io_config -> timings .v_res )
398
407
LCD_DEBUG_PRINT ("bits_per_pixel=%d\n" , self -> panel_io_config -> bits_per_pixel )
You can’t perform that action at this time.
0 commit comments