File tree 1 file changed +3
-5
lines changed
shared-module/sharpdisplay
1 file changed +3
-5
lines changed 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
90
90
}
91
91
92
92
void 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
-
97
93
if (self -> bus != & self -> inline_bus
98
94
#if BOARD_SPI
99
95
&& self -> bus != common_hal_board_get_spi ()
@@ -105,7 +101,9 @@ void common_hal_sharpdisplay_framebuffer_reset(sharpdisplay_framebuffer_obj_t *s
105
101
}
106
102
107
103
void 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
+ }
109
107
}
110
108
111
109
void 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