Skip to content

Commit

Permalink
Merge pull request #5171 from tonhuisman/bugfix/C002-use-correct-pin-…
Browse files Browse the repository at this point in the history
…for-controlling-p001

[C002] Bugfix: Use correct GPIO pin for controlling P001
  • Loading branch information
TD-er authored Dec 1, 2024
2 parents aeb72d0 + 43fc9e3 commit 4131eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_C002.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ bool CPlugin_002(CPlugin::Function function, struct EventStruct *event, String&
switch (Settings.getPluginID_for_task(x).value) {
case 1: // temp solution, if input switch, update state
{
action = strformat(F("gpio,%d,%d"), x, static_cast<int>(nvalue));
action = strformat(F("gpio,%d,%d"), Settings.TaskDevicePin1[x], static_cast<int>(nvalue));
break;
}
case 29: // temp solution, if plugin 029, set gpio
Expand Down

0 comments on commit 4131eb9

Please sign in to comment.