removed some unused code from previous UI experiments
This commit is contained in:
@@ -129,12 +129,9 @@ uint16_t portInput; // ID of the UDP port Number control
|
|||||||
|
|
||||||
// --- Calibration UI Controls ---
|
// --- Calibration UI Controls ---
|
||||||
uint16_t calChannelDropdown;
|
uint16_t calChannelDropdown;
|
||||||
uint16_t calLabel;
|
|
||||||
uint16_t calInputs[5];
|
uint16_t calInputs[5];
|
||||||
uint16_t calTestValueInput;
|
uint16_t calTestValueInput;
|
||||||
uint16_t calTestButton;
|
|
||||||
uint16_t calSaveButton;
|
uint16_t calSaveButton;
|
||||||
uint16_t calReleaseButton;
|
|
||||||
uint16_t calOverrideSwitch;
|
uint16_t calOverrideSwitch;
|
||||||
|
|
||||||
uint8_t selectedCalChannel = 0;
|
uint8_t selectedCalChannel = 0;
|
||||||
@@ -166,7 +163,6 @@ float applyCalibration(uint8_t ch, float logicalDuty) {
|
|||||||
// -------------------------------
|
// -------------------------------
|
||||||
void refreshCalibrationUI() {
|
void refreshCalibrationUI() {
|
||||||
String label = "CH" + String(selectedCalChannel) + " (" + channelLabels[selectedCalChannel] + ")";
|
String label = "CH" + String(selectedCalChannel) + " (" + channelLabels[selectedCalChannel] + ")";
|
||||||
ESPUI.updateControlValue(calLabel, label);
|
|
||||||
|
|
||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < 5; i++) {
|
||||||
ESPUI.updateControlValue(calInputs[i], String(calibratedPoints[selectedCalChannel][i], 2));
|
ESPUI.updateControlValue(calInputs[i], String(calibratedPoints[selectedCalChannel][i], 2));
|
||||||
@@ -225,14 +221,6 @@ void calSaveCallback(Control *sender, int type) {
|
|||||||
Serial.println("Calibration saved.");
|
Serial.println("Calibration saved.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void calReleaseOverrideCallback(Control *sender, int type) {
|
|
||||||
Serial.println("Manual override released for all channels.");
|
|
||||||
|
|
||||||
for (int ch = 0; ch < NUM_CHANNELS; ch++) {
|
|
||||||
overrideActive[ch] = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void calOverrideSwitchCallback(Control *sender, int type) {
|
void calOverrideSwitchCallback(Control *sender, int type) {
|
||||||
bool enabled = sender->value.toInt() == 1;
|
bool enabled = sender->value.toInt() == 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user