Correct constant for dynamic I2S bus in NeoPixelBus (#2797)

This commit is contained in:
Oxan van Leeuwen 2021-11-25 21:37:27 +01:00 committed by GitHub
parent 5e631bc6ba
commit 9681dfb458
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,8 +88,8 @@ def _esp32_i2s_default_bus():
def _validate_esp32_i2s_bus(value):
if isinstance(value, str) and value.lower() == CHANNEL_DYNAMIC:
value = CHANNEL_DYNAMIC
if isinstance(value, str) and value.lower() == BUS_DYNAMIC:
value = BUS_DYNAMIC
else:
value = cv.int_(value)
variant_buses = {