mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 23:18:10 +01:00
Fix SPI support for second bus on 2023.9.1 (#5456)
This commit is contained in:
parent
e9bda2810f
commit
efd31be21c
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ def get_spi_interface(index):
|
||||||
# Following code can't apply to C2, H2 or 8266 since they have only one SPI
|
# Following code can't apply to C2, H2 or 8266 since they have only one SPI
|
||||||
if get_target_variant() in (VARIANT_ESP32S3, VARIANT_ESP32S2):
|
if get_target_variant() in (VARIANT_ESP32S3, VARIANT_ESP32S2):
|
||||||
return "new SPIClass(FSPI)"
|
return "new SPIClass(FSPI)"
|
||||||
return "return new SPIClass(HSPI)"
|
return "new SPIClass(HSPI)"
|
||||||
|
|
||||||
|
|
||||||
SPI_SCHEMA = cv.All(
|
SPI_SCHEMA = cv.All(
|
||||||
|
|
Loading…
Reference in a new issue