diff options
| author | FoamyGuy <foamyguy@gmail.com> | 2020-09-11 21:37:00 -0500 |
|---|---|---|
| committer | FoamyGuy <foamyguy@gmail.com> | 2020-09-11 21:37:00 -0500 |
| commit | e114b5ab54e3c7f4a36a03dae2913cb76804efa3 (patch) | |
| tree | 5f7d5f0ed19ecb2a13216553a8347221ecb94d36 /shared-module/displayio/Display.c | |
| parent | 7611e71a1bc49bcb426e0854519d5143eb262a17 (diff) | |
fixes showing OnDiskBitmap with adafruit_sdcard
Diffstat (limited to 'shared-module/displayio/Display.c')
| -rw-r--r-- | shared-module/displayio/Display.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shared-module/displayio/Display.c b/shared-module/displayio/Display.c index 021159c0d..70ed8f2c2 100644 --- a/shared-module/displayio/Display.c +++ b/shared-module/displayio/Display.c @@ -317,11 +317,10 @@ STATIC bool _refresh_area(displayio_display_obj_t* self, const displayio_area_t* } STATIC void _refresh_display(displayio_display_obj_t* self) { - if (!displayio_display_core_bus_free(&self->core)) { - // Can't acquire display bus; skip updating this display. Try next display. + if (!displayio_display_core_start_refresh(&self->core)) { + // A refresh on this bus is already in progress. Try next display. return; } - displayio_display_core_start_refresh(&self->core); const displayio_area_t* current_area = _get_refresh_areas(self); while (current_area != NULL) { _refresh_area(self, current_area); |
