File tree Expand file tree Collapse file tree
shared-module/sharpdisplay Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,10 +90,6 @@ bool common_hal_sharpdisplay_framebuffer_get_pixels_in_byte_share_row(sharpdispl
9090}
9191
9292void common_hal_sharpdisplay_framebuffer_reset (sharpdisplay_framebuffer_obj_t * self ) {
93- if (!allocation_from_ptr (self -> bufinfo .buf )) {
94- self -> bufinfo .buf = NULL ;
95- }
96-
9793 if (self -> bus != & self -> inline_bus
9894#if BOARD_SPI
9995 && self -> bus != common_hal_board_get_spi ()
@@ -105,7 +101,9 @@ void common_hal_sharpdisplay_framebuffer_reset(sharpdisplay_framebuffer_obj_t *s
105101}
106102
107103void common_hal_sharpdisplay_framebuffer_reconstruct (sharpdisplay_framebuffer_obj_t * self ) {
108-
104+ if (!allocation_from_ptr (self -> bufinfo .buf )) {
105+ self -> bufinfo .buf = NULL ;
106+ }
109107}
110108
111109void common_hal_sharpdisplay_framebuffer_get_bufinfo (sharpdisplay_framebuffer_obj_t * self , mp_buffer_info_t * bufinfo ) {
You can’t perform that action at this time.
0 commit comments