mirror of
https://github.com/wled/WLED.git
synced 2025-07-09 20:06:33 +00:00
bug fix
This commit is contained in:
parent
daf0bcfac3
commit
fa82e759bd
@ -1257,8 +1257,8 @@ void WS2812FX::finalizeInit(void) {
|
|||||||
// i.e. DEBUG (GPIO1), DMX (2), SPI RAM/FLASH (16&17 on ESP32-WROVER/PICO), read/only pins, etc.
|
// i.e. DEBUG (GPIO1), DMX (2), SPI RAM/FLASH (16&17 on ESP32-WROVER/PICO), read/only pins, etc.
|
||||||
// Pin should not be already allocated, read/only or defined for current bus
|
// Pin should not be already allocated, read/only or defined for current bus
|
||||||
while (pinManager.isPinAllocated(defPin[j]) || pinManager.isReadOnlyPin(defPin[j]) || pinManager.isPinDefined(defPin[j], defPin, j)) {
|
while (pinManager.isPinAllocated(defPin[j]) || pinManager.isReadOnlyPin(defPin[j]) || pinManager.isPinDefined(defPin[j], defPin, j)) {
|
||||||
DEBUG_PRINTLN(F("Some of the provided pins cannot be used to configure this LED output."));
|
|
||||||
if (validPin) {
|
if (validPin) {
|
||||||
|
DEBUG_PRINTLN(F("Some of the provided pins cannot be used to configure this LED output."));
|
||||||
defPin[j] = 1; // start with GPIO1 and work upwards
|
defPin[j] = 1; // start with GPIO1 and work upwards
|
||||||
validPin = false;
|
validPin = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user