port und so

This commit is contained in:
chk
2026-03-10 15:49:53 +01:00
parent 20e2790552
commit ab9b0919fb
7 changed files with 19 additions and 51 deletions

View File

@@ -46,10 +46,6 @@ wss.on("connection", (ws) => {
fluid.sendGcode(data.cmd);
}
if (data.type === "zero") {
fluid.setZero();
}
} catch (e) {
console.log("[WS] Error parsing:", e);
}
@@ -70,7 +66,7 @@ fluid.onMessage((msg) => {
});
});
// Status polling ("?" every 200ms)
// Status polling ("?" every 50ms)
setInterval(() => {
fluid.requestStatus();
}, 50);