setting 5vv on app.js

This commit is contained in:
sanjayk03-dev
2024-04-04 15:49:46 +05:30
parent 605472f9f9
commit f418c3cdf3
3 changed files with 1 additions and 8 deletions

View File

@@ -429,7 +429,7 @@ module.exports = new Vue({
};
}
this.display_units = this.config.settings["units"];
this.state['5vv'] = 6
try {
await api.put("config/save", this.config);
this.modified = false;

View File

@@ -197,18 +197,13 @@ class Comm(object):
def _read(self, data):
decoded_data=data.decode('utf-8')
self.log.info('>>decoded_data ' + decoded_data)
self.log.info('202>>in_buf ' + self.in_buf)
self.in_buf += data.decode('utf-8')
self.log.info('204>>>in_buf ' + self.in_buf)
# Parse incoming serial data into lines
while True:
i = self.in_buf.find('\n')
if i == -1: break
line = self.in_buf[0:i].strip()
self.log.info('>>line ' + line)
self.in_buf = self.in_buf[i + 1:]
if line:

View File

@@ -283,8 +283,6 @@ class State(object):
def config(self, code, value):
# Set machine variables via mach, others directly
self.log.info('update state using code %s' % code)
self.log.info('update state using value %s' % value)
if code in self.machine_var_set: self.ctrl.mach.set(code, value)
else: self.set(code, value)