From c5b31e2f63f9206003b96b69bfc78c4dc16ea815 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Fri, 6 Sep 2024 17:56:36 +0200 Subject: [PATCH] Bugfix --- wled00/pin_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/pin_manager.cpp b/wled00/pin_manager.cpp index 0a0f39155..8db61361c 100644 --- a/wled00/pin_manager.cpp +++ b/wled00/pin_manager.cpp @@ -97,7 +97,7 @@ bool PinManagerClass::allocateMultiplePins(const managed_pin_type * mptArray, by bool shouldFail = false; // first verify the pins are OK and not already allocated for (int i = 0; i < arrayElementCount; i++) { - unsigned gpio = mptArray[i].pin; + byte gpio = mptArray[i].pin; if (gpio == 0xFF) { // explicit support for io -1 as a no-op (no allocation of pin), // as this can greatly simplify configuration arrays @@ -135,7 +135,7 @@ bool PinManagerClass::allocateMultiplePins(const managed_pin_type * mptArray, by // all pins are available .. track each one for (int i = 0; i < arrayElementCount; i++) { - unsigned gpio = mptArray[i].pin; + byte gpio = mptArray[i].pin; if (gpio == 0xFF) { // allow callers to include -1 value as non-requested pin // as this can greatly simplify configuration arrays