Skip to content

Commit 60e12c5

Browse files
committed
only add circuitpython_splash to display if it's not already in another group
1 parent cc0eeb4 commit 60e12c5

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
@@ -136,7 +136,9 @@ void common_hal_displayio_display_construct(displayio_display_obj_t *self,
136136

137137
// Set the group after initialization otherwise we may send pixels while we delay in
138138
// initialization.
139-
common_hal_displayio_display_set_root_group(self, &circuitpython_splash);
139+
if (!circuitpython_splash.in_group) {
140+
common_hal_displayio_display_set_root_group(self, &circuitpython_splash);
141+
}
140142
common_hal_displayio_display_set_auto_refresh(self, auto_refresh);
141143
}
142144

0 commit comments

Comments
 (0)