From a082ed183f40ad16f0a8846694f2b38730359d64 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 7 Dec 2024 14:54:04 -0500 Subject: [PATCH] Don't inherit the whole state, just on and feedrate --- src/assets/HestiaClasses.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/assets/HestiaClasses.js b/src/assets/HestiaClasses.js index 4706821..1c0912a 100644 --- a/src/assets/HestiaClasses.js +++ b/src/assets/HestiaClasses.js @@ -87,7 +87,8 @@ export class Communicator { const msgJson = JSON.parse(msgStr); console.log(`Message received on topic ${topic}: ${msgStr}`); console.log(msgJson); - state[msgJson.name] = msgJson; + state[msgJson.name].on = msgJson.on; + if (msgJson.feedRate) state[msgJson.name].feedRate = msgJson.feedRate; window.refreshState(window.document, state); }); }