Skip to content

Commit 0bec391

Browse files
committed
displayio: Don't need to specialcase reset of sharpdisplay framebuffer
.. for the case where the bus was not in use
1 parent b542c14 commit 0bec391

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

shared-module/displayio/__init__.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,7 @@ void reset_displays(void) {
186186
#if CIRCUITPY_SHARPDISPLAY
187187
} else if (displays[i].bus_base.type == &sharpdisplay_framebuffer_type) {
188188
sharpdisplay_framebuffer_obj_t * sharp = &displays[i].sharpdisplay;
189-
if(any_display_uses_this_framebuffer(&sharp->base)) {
190-
common_hal_sharpdisplay_framebuffer_reset(sharp);
191-
} else {
192-
common_hal_sharpdisplay_framebuffer_deinit(sharp);
193-
}
189+
common_hal_sharpdisplay_framebuffer_reset(sharp);
194190
#endif
195191
} else {
196192
// Not an active display bus.

0 commit comments

Comments
 (0)