mirror of https://github.com/ARMmbed/mbed-os.git
parent
8bdd782a30
commit
16a40c3ff1
|
@ -1801,7 +1801,7 @@ HAL_StatusTypeDef HAL_SPI_TransmitReceive_IT(SPI_HandleTypeDef *hspi, uint8_t *p
|
||||||
__HAL_SPI_ENABLE(hspi);
|
__HAL_SPI_ENABLE(hspi);
|
||||||
|
|
||||||
/* Fill in the TxFIFO */
|
/* 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)
|
if (max_fifo_length < MAX_FIFO_LENGTH)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue