Skip to content

Commit 0d7f257

Browse files
committed
displayio: Pause rgbmatrix during soft-reset
We can't handle rgbmatrix's interrupts from here until the display is reinitialized, so set the display as paused. With this change, I can survive multiple cycles with wifi+rgbmatrix on an esp32s2. Before, it usually failed.
1 parent 4de8fa0 commit 0d7f257

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared-module/displayio/__init__.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ void reset_displays(void) {
185185
rgbmatrix_rgbmatrix_obj_t *pm = &displays[i].rgbmatrix;
186186
if (!any_display_uses_this_framebuffer(&pm->base)) {
187187
common_hal_rgbmatrix_rgbmatrix_deinit(pm);
188+
} else {
189+
common_hal_rgbmatrix_rgbmatrix_set_paused(pm, true);
188190
}
189191
#endif
190192
#if CIRCUITPY_SHARPDISPLAY

0 commit comments

Comments
 (0)