diff options
| author | FoamyGuy <foamyguy@gmail.com> | 2020-09-30 14:03:03 -0500 |
|---|---|---|
| committer | FoamyGuy <foamyguy@gmail.com> | 2020-09-30 14:03:03 -0500 |
| commit | d1bda47d94c2ab9e42a74de4a5209df73e46a4ea (patch) | |
| tree | 24e866cccb42c5f7fb8ff138bbc542d4369fa671 | |
| parent | ff1a90a9c3bcdb9b9c89e56f95807ac4139a3770 (diff) | |
removing top level displayio background check
| -rw-r--r-- | shared-module/displayio/__init__.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/shared-module/displayio/__init__.c b/shared-module/displayio/__init__.c index 101dac4b3..5161923d6 100644 --- a/shared-module/displayio/__init__.c +++ b/shared-module/displayio/__init__.c @@ -40,8 +40,6 @@ STATIC bool any_display_uses_this_framebuffer(mp_obj_base_t *obj) { } #endif -// Check for recursive calls to displayio_background. -bool displayio_background_in_progress = false; void displayio_background(void) { if (mp_hal_is_interrupted()) { @@ -52,11 +50,6 @@ void displayio_background(void) { return; } - if (displayio_background_in_progress) { - // Don't allow recursive calls to this routine. - return; - } - displayio_background_in_progress = true; for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) { @@ -75,8 +68,6 @@ void displayio_background(void) { } } - // All done. - displayio_background_in_progress = false; } void common_hal_displayio_release_displays(void) { |
