Button tdrLocation and loop Display

This commit is contained in:
ISA
2024-11-05 15:42:14 +01:00
parent 344f4bdb75
commit 6ec4dfe6ab

View File

@@ -68,9 +68,15 @@ function Kue705FO({
if (button === "Schleife") {
setActiveButton("Schleife");
setloopTitleText("Schleifenwiderstand [kOhm]");
setLoopDisplayValue(schleifenwiderstand); // Setze den Wert auf schleifenwiderstand
} else if (button === "TDR") {
setActiveButton("TDR");
setloopTitleText("Entfernung [Km]");
setLoopDisplayValue(
tdrLocation && tdrLocation[slotIndex] !== undefined
? tdrLocation[slotIndex]
: "0"
); // Setze den Wert auf tdrLocation oder "0" als Fallback
}
};