mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
spi_slave.c:fix DMA channel set to zero which might gets conflict with assert
close #2740
This commit is contained in:
@@ -218,7 +218,7 @@ cleanup:
|
||||
free(spihost[host]);
|
||||
spihost[host] = NULL;
|
||||
spicommon_periph_free(host);
|
||||
spicommon_dma_chan_free(dma_chan);
|
||||
if (dma_chan != 0) spicommon_dma_chan_free(dma_chan);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user