port und so
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user