Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nrf: disable interrupts before running wfi
Also, run background tasks with interrupts disabled. This ensures that any buffers are drained, and if an interrupt arrives after buffers are drained but before the WFI is executed then the WFI instruction will return immediately. This fixes adafruit#2855 on NRF. Signed-off-by: Sean Cross <sean@xobs.io>
- Loading branch information