From f842e25f74296c850cbaf3ece544160961529e62 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 28 Feb 2024 18:28:27 -0600 Subject: [PATCH] fix issue where setPinMappingsV2 was actually ignoring input --- src/configs/webconfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configs/webconfig.cpp b/src/configs/webconfig.cpp index fe1bb6b7a..d5785e8af 100644 --- a/src/configs/webconfig.cpp +++ b/src/configs/webconfig.cpp @@ -1048,8 +1048,8 @@ std::string setPinMappingsV2() // setting a pin shouldn't change a new existing addon/reserved pin if (gpioMappings[pin].action != GpioAction::RESERVED && gpioMappings[pin].action != GpioAction::ASSIGNED_TO_ADDON && - (GpioAction)doc[pinName] != GpioAction::RESERVED && - (GpioAction)doc[pinName] != GpioAction::ASSIGNED_TO_ADDON) { + (GpioAction)doc[pinName]["action"] != GpioAction::RESERVED && + (GpioAction)doc[pinName]["action"] != GpioAction::ASSIGNED_TO_ADDON) { gpioMappings[pin].action = (GpioAction)doc[pinName]["action"]; gpioMappings[pin].customButtonMask = (GpioAction)doc[pinName]["customButtonMask"]; gpioMappings[pin].customDpadMask = (GpioAction)doc[pinName]["customDpadMask"];