Skip to content

Commit 55ce4d8

Browse files
committed
Use separate SPI buses for RF and ETH
1 parent 1b9f181 commit 55ce4d8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/CMT2300a/cmt_spi3.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void cmt_spi3_init(const int8_t pin_sdio, const int8_t pin_clk, const int8_t pin
4747
.post_cb = post_cb,
4848
};
4949

50-
spi = SpiManagerInst.alloc_device("", bus_config, device_config);
50+
spi = SpiManagerInst.alloc_device("RF", bus_config, device_config);
5151
if (!spi)
5252
ESP_ERROR_CHECK(ESP_FAIL);
5353

src/InverterSettings.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void InverterSettingsClass::init(Scheduler& scheduler)
5555
.post_cb = nullptr,
5656
};
5757

58-
spi_device_handle_t dev = SpiManagerInst.alloc_device("", bus_config, device_config);
58+
spi_device_handle_t dev = SpiManagerInst.alloc_device("RF", bus_config, device_config);
5959
if (!dev)
6060
ESP_ERROR_CHECK(ESP_FAIL);
6161

src/W5500.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ W5500::W5500(int8_t pin_mosi, int8_t pin_miso, int8_t pin_sclk, int8_t pin_cs, i
4646
.post_cb = nullptr,
4747
};
4848

49-
spi_device_handle_t spi = SpiManagerInst.alloc_device("", bus_config, device_config);
49+
spi_device_handle_t spi = SpiManagerInst.alloc_device("ETH", bus_config, device_config);
5050
if (!spi)
5151
ESP_ERROR_CHECK(ESP_FAIL);
5252

0 commit comments

Comments
 (0)