patching _

This commit is contained in:
sanjayk03-dev
2024-02-26 17:54:54 +05:30
parent cf81ae5d87
commit 6c65d34b28

View File

@@ -159,7 +159,7 @@ module.exports = {
this.config.tool = merge({}, this.config.tool, settings["tool"]); this.config.tool = merge({}, this.config.tool, settings["tool"]);
this.config["pwm-spindle"] = merge({}, this.config["pwm-spindle"], settings["pwm-spindle"]); this.config["pwm-spindle"] = merge({}, this.config["pwm-spindle"], settings["pwm-spindle"]);
this.config["modbus-spindle"] = merge({}, this.config["modbus-spindle"], settings["modbus-spindle"]); this.config["modbus-spindle"] = merge({}, this.config["modbus-spindle"], settings["modbus-spindle"]);
if (this.selected_tool == "pwncnc-vfd" && _.isEmpty(settings)) { if (this.selected_tool == "pwncnc-vfd" && Object.keys(settings).length == 0) {
this.config["modbus-spindle"]["regs"][5] = { this.config["modbus-spindle"]["regs"][5] = {
"reg-value": 6, "reg-value": 6,
"reg-type": "stop-write", "reg-type": "stop-write",