mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-27 15:39:32 +00:00
Very important fixes
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user