aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/machine/machine_nrf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine_nrf.go b/src/machine/machine_nrf.go
index 382dd05c2..3d65ad578 100644
--- a/src/machine/machine_nrf.go
+++ b/src/machine/machine_nrf.go
@@ -443,13 +443,13 @@ func (spi SPI) Tx(w, r []byte) error {
spi.Bus.TXD.Set(uint32(b))
for spi.Bus.EVENTS_READY.Get() == 0 {
}
- _ = spi.Bus.RXD.Get()
spi.Bus.EVENTS_READY.Set(0)
+ _ = spi.Bus.RXD.Get()
}
for spi.Bus.EVENTS_READY.Get() == 0 {
}
- _ = spi.Bus.RXD.Get()
spi.Bus.EVENTS_READY.Set(0)
+ _ = spi.Bus.RXD.Get()
default:
// write/read