Skip to content

Commit

Permalink
fix issue where setPinMappingsV2 was actually ignoring input
Browse files Browse the repository at this point in the history
  • Loading branch information
bsstephan committed Mar 25, 2024
1 parent a2853d8 commit f842e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configs/webconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit f842e25

Please sign in to comment.