setting 5vv on app.js
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user