Button tdrLocation and loop Display
This commit is contained in:
@@ -68,9 +68,15 @@ function Kue705FO({
|
|||||||
if (button === "Schleife") {
|
if (button === "Schleife") {
|
||||||
setActiveButton("Schleife");
|
setActiveButton("Schleife");
|
||||||
setloopTitleText("Schleifenwiderstand [kOhm]");
|
setloopTitleText("Schleifenwiderstand [kOhm]");
|
||||||
|
setLoopDisplayValue(schleifenwiderstand); // Setze den Wert auf schleifenwiderstand
|
||||||
} else if (button === "TDR") {
|
} else if (button === "TDR") {
|
||||||
setActiveButton("TDR");
|
setActiveButton("TDR");
|
||||||
setloopTitleText("Entfernung [Km]");
|
setloopTitleText("Entfernung [Km]");
|
||||||
|
setLoopDisplayValue(
|
||||||
|
tdrLocation && tdrLocation[slotIndex] !== undefined
|
||||||
|
? tdrLocation[slotIndex]
|
||||||
|
: "0"
|
||||||
|
); // Setze den Wert auf tdrLocation oder "0" als Fallback
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user