fix: digitalOutputs.html , die Bezeichnung kann geändert werden, aber der Schalter muss Kai noch programmieren

This commit is contained in:
ISA
2025-05-13 07:39:49 +02:00
parent 6b99c8017b
commit 7b1fc4c875
4 changed files with 6 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ export default function DigitalOutputsWidget({ openOutputModal }) {
try {
if (isCPL) {
window.location.href = `/CPL?dummy.htm&DAS${id}=${
window.location.href = `/CPL?digitalOutputs.html&DAS0${id}=${
updatedOutputs[id - 1].status ? 1 : 0
}`;
} else {

View File

@@ -50,10 +50,10 @@ export default function DigitalOutputsModal({
if (isCPL) {
// ✅ Name speichern (DANx=...)
const nameEncoded = encodeURIComponent(label.trim());
const nameUrl = `/CPL?dummy.htm&DAN${selectedOutput.id}=${nameEncoded}`;
const nameUrl = `/CPL?digitalOutputs.html&DAN0${selectedOutput.id}=${nameEncoded}`;
// ✅ Status speichern (DASx=...)
const statusUrl = `/CPL?dummy.htm&DAS${selectedOutput.id}=${
const statusUrl = `/CPL?digitalOutputs.html&DAS0${selectedOutput.id}=${
status ? 1 : 0
}`;