diff --git a/targets/TARGET_NUVOTON/TARGET_M480/spi_api.c b/targets/TARGET_NUVOTON/TARGET_M480/spi_api.c index 7c30d37f9b..603aed78a6 100644 --- a/targets/TARGET_NUVOTON/TARGET_M480/spi_api.c +++ b/targets/TARGET_NUVOTON/TARGET_M480/spi_api.c @@ -542,7 +542,7 @@ static uint32_t spi_event_check(spi_t *obj) // Receive Time-Out if (spi_base->STATUS & SPI_STATUS_RXTOIF_Msk) { spi_base->STATUS = SPI_STATUS_RXTOIF_Msk; - //event |= SPI_EVENT_ERROR; + // Not using this IF. Just clear it. } // Transmit FIFO Under-Run if (spi_base->STATUS & SPI_STATUS_TXUFIF_Msk) {