setimmediate to settimeout
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user