Skip to content

Commit

Permalink
fix(eth): Fix ETH.stop() with IDF SPI
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed May 27, 2024
1 parent 097f2ab commit 70b3f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Ethernet/src/ETH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 70b3f82

Please sign in to comment.