Skip to content

Commit 8bf94d0

Browse files
committed
try to fix multi-display reset
1 parent 60e12c5 commit 8bf94d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shared-module/displayio/Display.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,9 @@ void reset_display(displayio_display_obj_t *self) {
439439
circuitpython_splash.x = 0; // reset position in case someone moved it.
440440
circuitpython_splash.y = 0;
441441
supervisor_start_terminal(self->core.width, self->core.height);
442-
common_hal_displayio_display_set_root_group(self, &circuitpython_splash);
442+
if (!circuitpython_splash.in_group) {
443+
common_hal_displayio_display_set_root_group(self, &circuitpython_splash);
444+
}
443445
}
444446

445447
void displayio_display_collect_ptrs(displayio_display_obj_t *self) {

0 commit comments

Comments
 (0)