Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
JK-de authored and psy0rz committed Jun 10, 2017
1 parent 77eedf5 commit b63e76a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/WebServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1112,9 +1112,9 @@ void handle_devices() {
String taskdevicenumber = WebServer.arg(F("TDNUM"));
String taskdevicetimer = WebServer.arg(F("TDT"));
String taskdeviceid[CONTROLLER_MAX];
String taskdevicepin1 = WebServer.arg(F("TDP1"));
String taskdevicepin2 = WebServer.arg(F("TDP2"));
String taskdevicepin3 = WebServer.arg(F("TDP3"));
String taskdevicepin1 = WebServer.arg(F("taskdevicepin1")); // "taskdevicepin*" should not be changed because it is uses by plugins and expected to be saved by this code
String taskdevicepin2 = WebServer.arg(F("taskdevicepin2"));
String taskdevicepin3 = WebServer.arg(F("taskdevicepin3"));
String taskdevicepin1pullup = WebServer.arg(F("TDPPU"));
String taskdevicepin1inversed = WebServer.arg(F("TDPI"));
String taskdevicename = WebServer.arg(F("TDN"));
Expand Down Expand Up @@ -1471,11 +1471,11 @@ void handle_devices() {
addFormCheckBox(reply, F("Inversed Logic"), F("TDPI"), Settings.TaskDevicePin1Inversed[index - 1]); //="taskdevicepin1inversed"

if (Device[DeviceIndex].Type >= DEVICE_TYPE_SINGLE && Device[DeviceIndex].Type <= DEVICE_TYPE_TRIPLE)
addFormPinSelect(reply, F("1st GPIO"), F("TDP1"), Settings.TaskDevicePin1[index - 1]); //="taskdevicepin1"
addFormPinSelect(reply, F("1st GPIO"), F("taskdevicepin1"), Settings.TaskDevicePin1[index - 1]);
if (Device[DeviceIndex].Type >= DEVICE_TYPE_DUAL && Device[DeviceIndex].Type <= DEVICE_TYPE_TRIPLE)
addFormPinSelect(reply, F("2nd GPIO"), F("TDP2"), Settings.TaskDevicePin2[index - 1]); //="taskdevicepin2"
addFormPinSelect(reply, F("2nd GPIO"), F("taskdevicepin2"), Settings.TaskDevicePin2[index - 1]);
if (Device[DeviceIndex].Type == DEVICE_TYPE_TRIPLE)
addFormPinSelect(reply, F("3rd GPIO"), F("TDP3"), Settings.TaskDevicePin3[index - 1]); //="taskdevicepin3"
addFormPinSelect(reply, F("3rd GPIO"), F("taskdevicepin3"), Settings.TaskDevicePin3[index - 1]);
}

//add plugins content
Expand Down

0 comments on commit b63e76a

Please sign in to comment.