STM32U5 ST_HAL_SPI workaround

Internal ticket 112451
pull/15022/head
Jerome Coutant 2021-08-27 17:08:16 +02:00
parent 8bdd782a30
commit 16a40c3ff1
1 changed files with 1 additions and 1 deletions

View File

@ -1801,7 +1801,7 @@ HAL_StatusTypeDef HAL_SPI_TransmitReceive_IT(SPI_HandleTypeDef *hspi, uint8_t *p
__HAL_SPI_ENABLE(hspi);
/* Fill in the TxFIFO */
while ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXP)) && (tmp_TxXferCount != 0UL))
while ((__HAL_SPI_GET_FLAG(hspi, SPI_FLAG_TXP)) && (tmp_TxXferCount != 0UL) && (max_fifo_length < MAX_FIFO_LENGTH))
{
if (max_fifo_length < MAX_FIFO_LENGTH)
{