diff options
| author | hathach <thach@tinyusb.org> | 2018-09-04 19:24:45 +0700 |
|---|---|---|
| committer | hathach <thach@tinyusb.org> | 2018-09-04 19:24:45 +0700 |
| commit | 1fe3ed87ebf0624e8a1938b5f549943278e439e3 (patch) | |
| tree | d2266830424bfd1b3f2178b377acb57a8c38d8d1 /ports | |
| parent | 0d92c65829cc18ef40d221785c5a7c9f7fde0e8c (diff) | |
run background job while waiting for neopixel write seqend
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/nrf/common-hal/neopixel_write/__init__.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/nrf/common-hal/neopixel_write/__init__.c b/ports/nrf/common-hal/neopixel_write/__init__.c index ff2a2fa77..999cb1b0a 100644 --- a/ports/nrf/common-hal/neopixel_write/__init__.c +++ b/ports/nrf/common-hal/neopixel_write/__init__.c @@ -179,9 +179,9 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout // But we have to wait for the flag to be set. while ( !pwm->EVENTS_SEQEND[0] ) { -//#ifdef MICROPY_VM_HOOK_LOOP -// MICROPY_VM_HOOK_LOOP -//#endif +#ifdef MICROPY_VM_HOOK_LOOP + MICROPY_VM_HOOK_LOOP +#endif } // Before leave we clear the flag for the event. |
