displayio: Don't need to specialcase reset of sharpdisplay framebuffer

.. for the case where the bus was not in use
This commit is contained in:
Jeff Epler 2020-08-18 09:31:49 -05:00
parent b542c1486f
commit 0bec39118f
1 changed files with 1 additions and 5 deletions

View File

@ -186,11 +186,7 @@ void reset_displays(void) {
#if CIRCUITPY_SHARPDISPLAY
} else if (displays[i].bus_base.type == &sharpdisplay_framebuffer_type) {
sharpdisplay_framebuffer_obj_t * sharp = &displays[i].sharpdisplay;
if(any_display_uses_this_framebuffer(&sharp->base)) {
common_hal_sharpdisplay_framebuffer_reset(sharp);
} else {
common_hal_sharpdisplay_framebuffer_deinit(sharp);
}
common_hal_sharpdisplay_framebuffer_reset(sharp);
#endif
} else {
// Not an active display bus.