8000 removing top level displayio background check · joric/circuitpython@d1bda47 · GitHub
[go: up one dir, main page]

Skip to content

Commit d1bda47

Browse files
committed
removing top level displayio background check
1 parent ff1a90a commit d1bda47

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

shared-module/displayio/__init__.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ STATIC bool any_display_uses_this_framebuffer(mp_obj_base_t *obj) {
4040
}
4141
#endif
4242

43-
// Check for recursive calls to displayio_background.
44-
bool displayio_background_in_progress = false;
4543

4644
void displayio_background(void) {
4745
if (mp_hal_is_interrupted()) {
@@ -52,11 +50,6 @@ void displayio_background(void) {
5250
return;
5351
}
5452

55-
if (displayio_background_in_progress) {
56-
// Don't allow recursive calls to this routine.
57-
return;
58-
}
59-
6053
displayio_background_in_progress = true;
6154

6255
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
@@ -75,8 +68,6 @@ void displayio_background(void) {
7568
}
7669
}
7770

78-
// All done.
79-
displayio_background_in_progress = false;
8071
}
8172

8273
void common_hal_displayio_release_displays(void) {

0 commit comments

Comments
 (0)
0