fix(eth): Fix ETH.stop() with IDF SPI (#9693)
This commit is contained in:
parent
097f2ab903
commit
4717585421
1 changed files with 1 additions and 1 deletions
|
|
@ -553,7 +553,7 @@ bool ETHClass::beginSPI(
|
|||
buscfg.data7_io_num = -1;
|
||||
buscfg.max_transfer_sz = -1;
|
||||
ret = spi_bus_initialize(spi_host, &buscfg, SPI_DMA_CH_AUTO);
|
||||
if (ret != ESP_OK) {
|
||||
if (ret != ESP_OK && ret != ESP_ERR_INVALID_STATE) {
|
||||
log_e("SPI bus initialize failed: %d", ret);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue