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:
parent
b542c1486f
commit
0bec39118f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue