Marker fix

This commit is contained in:
chk
2026-06-14 21:31:30 +02:00
parent dbfc915b66
commit 42742485f1
2 changed files with 22 additions and 1 deletions

View File

@@ -1132,7 +1132,15 @@ async function initAll() {
}
if (IS_HOMING) {
document.getElementById('status').textContent = '→ Homing-Run starten …';
// Robot-Modell mit Defaultposition sofort laden (kein Board-Run nötig)
fetch('/api/robot').then(r => r.ok ? r.json() : null).then(robot => {
if (!robot) return;
_currentRobot = robot;
buildSkeletonFK(robot, robot.defaultPosition ?? {});
document.getElementById('status').textContent = '→ Homing-Run starten …';
}).catch(() => {
document.getElementById('status').textContent = '→ Homing-Run starten …';
});
} else {
initAll();
}