From cdf9e0bdcda6acc209c0ad306c049919bf1a6bfd Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Fri, 5 Apr 2024 00:02:21 +0530 Subject: [PATCH] setimmediate to settimeout --- src/js/app.js | 2 +- src/py/bbctrl/AVR.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/app.js b/src/js/app.js index fa0206a..db90472 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -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) { diff --git a/src/py/bbctrl/AVR.py b/src/py/bbctrl/AVR.py index f0f695b..211fe6e 100644 --- a/src/py/bbctrl/AVR.py +++ b/src/py/bbctrl/AVR.py @@ -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: