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); }); }