From 6ec4dfe6ab8edbc7d561d7c0d5d1e4c02a9a9054 Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 5 Nov 2024 15:42:14 +0100 Subject: [PATCH] Button tdrLocation and loop Display --- components/modules/Kue705FO.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/modules/Kue705FO.jsx b/components/modules/Kue705FO.jsx index e91a051..8326d64 100644 --- a/components/modules/Kue705FO.jsx +++ b/components/modules/Kue705FO.jsx @@ -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 } };