Very important fixes

This commit is contained in:
Igor Nurullaev
2019-09-04 19:03:55 +03:00
parent fa94a88f47
commit e4113a34f3
2 changed files with 2 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ def selfcheck_selected():
time = copter.refresh()
data = {
'anim_id': copter.anim_id,
'batt_voltage': copter.batt_voltage,
'batt_voltage': ((float(copter.batt_voltage) - 3.2) / (4.2 - 3.2)) * 100,
'cell_voltage': copter.cell_voltage,
'selfcheck': copter.selfcheck,
'time': round(float(copter.time) - time, 3),
@@ -32,7 +32,7 @@ def selfcheck_all():
time = copter.refresh()
data.append({
'anim_id': copter.anim_id,
'batt_voltage': copter.batt_voltage,
'batt_voltage': ((float(copter.batt_voltage) - 3.2) / (4.2 - 3.2)) * 100,
'cell_voltage': copter.cell_voltage,
'selfcheck': copter.selfcheck,
'ip': copter.ip,

View File

@@ -116,7 +116,6 @@ function refreshRows(selectedRows) {
let response = JSON.parse(req.response);
Object.keys(response).forEach(function (item) {
element._row.data[item] = response[item];
colorRow(element);
});
});
spinner.style.display = 'none';