Skip to content

Commit 1fe3ed8

Browse files
committed
run background job while waiting for neopixel write seqend
1 parent 0d92c65 commit 1fe3ed8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ports/nrf/common-hal/neopixel_write/__init__.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ void common_hal_neopixel_write (const digitalio_digitalinout_obj_t* digitalinout
179179

180180
// But we have to wait for the flag to be set.
181181
while ( !pwm->EVENTS_SEQEND[0] ) {
182-
//#ifdef MICROPY_VM_HOOK_LOOP
183-
// MICROPY_VM_HOOK_LOOP
184-
//#endif
182+
#ifdef MICROPY_VM_HOOK_LOOP
183+
MICROPY_VM_HOOK_LOOP
184+
#endif
185185
}
186186

187187
// Before leave we clear the flag for the event.

0 commit comments

Comments
 (0)