diff --git a/src/machine/machine_nrf52xxx.go b/src/machine/machine_nrf52xxx.go index 4948e134a2..90a1a7fbf5 100644 --- a/src/machine/machine_nrf52xxx.go +++ b/src/machine/machine_nrf52xxx.go @@ -335,6 +335,7 @@ func (spi *SPI) Tx(w, r []byte) error { // finished if the transfer is send-only (a common case). spi.Bus.TASKS_START.Set(1) for spi.Bus.EVENTS_END.Get() == 0 { + gosched() } spi.Bus.EVENTS_END.Set(0) }