[neopixelbus] Fix SPI pin validation accepting one wrong pin on ESP8266 (#15494)
This commit is contained in:
1 parent
d9da91efbe
commit
14bcd9db59
1 file changed
+1
-1
@@ -344,7 +344,7 @@ def _spi_extra_validate(config):
|
||||
if CORE.is_esp32:
|
||||
return
|
||||
|
||||
if config[CONF_DATA_PIN] != 13 and config[CONF_CLOCK_PIN] != 14:
|
||||
if config[CONF_DATA_PIN] != 13 or config[CONF_CLOCK_PIN] != 14:
|
||||
raise cv.Invalid(
|
||||
"SPI only supports pins GPIO13 for data and GPIO14 for clock on ESP8266"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user