From 43fc9e3b47bb51436de1bc8978d2f7c6e5d08b3a Mon Sep 17 00:00:00 2001 From: Ton Huisman Date: Sun, 1 Dec 2024 21:32:49 +0100 Subject: [PATCH] [C002] Bugfix: Use correct GPIO pin for controlling P001 --- src/_C002.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_C002.cpp b/src/_C002.cpp index 1645866698..dc9f9f13bd 100644 --- a/src/_C002.cpp +++ b/src/_C002.cpp @@ -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(nvalue)); + action = strformat(F("gpio,%d,%d"), Settings.TaskDevicePin1[x], static_cast(nvalue)); break; } case 29: // temp solution, if plugin 029, set gpio