Eliminate a warning found in build testing.
This commit is contained in:
parent
6bae133e74
commit
4b6f0149ec
@ -625,7 +625,9 @@ static inline uint16_t spi_readword(FAR struct stm32_spidev_s *priv)
|
||||
{
|
||||
/* Wait until the receive buffer is not empty */
|
||||
|
||||
while ((spi_getreg(priv, STM32_SPI_SR_OFFSET) & SPI_SR_RXNE) == 0);
|
||||
while ((spi_getreg(priv, STM32_SPI_SR_OFFSET) & SPI_SR_RXNE) == 0)
|
||||
{
|
||||
}
|
||||
|
||||
/* Then return the received byte */
|
||||
|
||||
@ -671,7 +673,9 @@ static inline void spi_writeword(FAR struct stm32_spidev_s *priv, uint16_t word)
|
||||
{
|
||||
/* Wait until the transmit buffer is empty */
|
||||
|
||||
while ((spi_getreg(priv, STM32_SPI_SR_OFFSET) & SPI_SR_TXE) == 0);
|
||||
while ((spi_getreg(priv, STM32_SPI_SR_OFFSET) & SPI_SR_TXE) == 0)
|
||||
{
|
||||
}
|
||||
|
||||
/* Then send the word */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user