mirror of https://github.com/wolfSSL/wolfBoot.git
Fix use-before-set variable in spi drv for nrf52
parent
f7da6c5f6e
commit
45055a43c8
|
@ -88,6 +88,7 @@ void spi_write(const char byte)
|
||||||
uint32_t reg;
|
uint32_t reg;
|
||||||
SPI_EV_RDY = 0;
|
SPI_EV_RDY = 0;
|
||||||
SPI_TXDATA = (uint32_t)byte;
|
SPI_TXDATA = (uint32_t)byte;
|
||||||
|
reg = SPI_EV_RDY;
|
||||||
while (!reg)
|
while (!reg)
|
||||||
reg = SPI_EV_RDY;
|
reg = SPI_EV_RDY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue