fix: goTDR und goLoop modul 8 und 9

führende Nullen entfernt
This commit is contained in:
ISA
2024-11-18 14:08:33 +01:00
parent 15584e12fb
commit be7c769de8

View File

@@ -92,7 +92,8 @@ function Kue705FO({
return;
}
let slotFormat = slot < 10 ? `0${slot}` : `${slot}`;
// Entfernt führende Nullen, falls vorhanden
let slotFormat = slot < 10 ? `${parseInt(slot, 10)}` : `${slot}`;
setLoading(true); // Setze den Ladezustand auf true
alert(`Schleifenmessung wird für Slot ${slot + 1} gestartet...`);
@@ -115,6 +116,7 @@ function Kue705FO({
})
.finally(() => setLoading(false)); // Ladezustand zurücksetzen
};
// Funktion für die TDR-Messung
const goTDR = () => {
//-------------------------------------------------
@@ -124,7 +126,8 @@ function Kue705FO({
return;
}
let slotFormat = slot < 10 ? `0${slot}` : `${slot}`;
// Entfernt führende Nullen, falls vorhanden
let slotFormat = slot < 10 ? `${parseInt(slot, 10)}` : `${slot}`;
setLoading(true);
alert(`TDR wird für Slot ${slot + 1} gestartet...`);