setimmediate to settimeout

This commit is contained in:
sanjayk03-dev
2024-04-05 00:02:21 +05:30
parent eb551e5b4a
commit cdf9e0bdcd
2 changed files with 1 additions and 2 deletions

View File

@@ -432,7 +432,7 @@ module.exports = new Vue({
try {
await api.put("config/save", this.config);
if(selected_tool == "pwncnc-vfd" && saveModbus){
setImmediate(() => this.state['5vv'] = 6);
setTimeout(() => this.state['5vv'] = 6,1000);
}
this.modified = false;
} catch (error) {

View File

@@ -124,7 +124,6 @@ class AVR(object):
try:
data = ''
data = self.sp.read(self.sp.in_waiting)
self.log.info('AYR> %s' % data)
self.read_cb(data)
except Exception as e: