diff --git a/src/avr/src/vfd_spindle.c b/src/avr/src/vfd_spindle.c index d89c0ce..1c5432a 100644 --- a/src/avr/src/vfd_spindle.c +++ b/src/avr/src/vfd_spindle.c @@ -176,7 +176,7 @@ const vfd_reg_t pwncnc_regs[] PROGMEM = { {REG_FREQ_READ, 0x9000, 0}, // Read frequency {REG_FWD_WRITE, 0xa000, 1}, // Run forward {REG_REV_WRITE, 0xa000, 2}, // Run reverse - {REG_STOP_WRITE, 0xa000, 5}, // Stop + {REG_STOP_WRITE, 0xa000, 6}, // Stop {REG_DISCONNECT_WRITE, 0xa000, 5}, // Stop {REG_STATUS_READ, 0xb000, 0}, // Read status {REG_DISABLED}, diff --git a/src/js/app.js b/src/js/app.js index 01beb95..d1b6825 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -431,9 +431,6 @@ module.exports = new Vue({ this.display_units = this.config.settings["units"]; try { await api.put("config/save", this.config); - if(selected_tool == "pwncnc-vfd" && saveModbus){ - setTimeout(() => this.state['5vv'] = 6, 2000); - } this.modified = false; } catch (error) { console.error("Save failed:", error);