diff options
| author | Jeff Epler <jepler@gmail.com> | 2019-08-11 08:40:19 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2019-08-11 08:53:02 -0500 |
| commit | e3c0428838efa2800dfa319089b869048dad851a (patch) | |
| tree | 27217677dc2aad6404846457a65d545645f517c3 /shared-module | |
| parent | 32a6d3640540e5fa5860f05c1a12b9182bc58de7 (diff) | |
shared-module: Use RUN_BACKGROUND_TASKS
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/displayio/Display.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/shared-module/displayio/Display.c b/shared-module/displayio/Display.c index 51c6f292a..d1b4be20f 100644 --- a/shared-module/displayio/Display.c +++ b/shared-module/displayio/Display.c @@ -85,9 +85,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self, uint32_t i = 0; while (!self->begin_transaction(self->bus)) { -#ifdef MICROPY_VM_HOOK_LOOP - MICROPY_VM_HOOK_LOOP ; -#endif + RUN_BACKGROUND_TASKS; } while (i < init_sequence_len) { uint8_t *cmd = init_sequence + i; @@ -235,7 +233,7 @@ int32_t common_hal_displayio_display_wait_for_frame(displayio_display_obj_t* sel uint64_t last_refresh = self->last_refresh; // Don't try to refresh if we got an exception. while (last_refresh == self->last_refresh && MP_STATE_VM(mp_pending_exception) == NULL) { - MICROPY_VM_HOOK_LOOP + RUN_BACKGROUND_TASKS; } return 0; } |
