Fixed non working quad-status-wrapper

10.8-maintenance
Asizon 2020-12-18 17:16:59 +01:00
parent 0f8a2911d9
commit 770098119e
1 changed files with 6 additions and 6 deletions

View File

@ -682,14 +682,14 @@ function update_live_status() {
$(".armedicon").removeClass('active');
}
}
}
if (FC.AUX_CONFIG[index] === 'FAILSAFE') {
if (FC.AUX_CONFIG[i] === 'FAILSAFE') {
if (bit_check(FC.CONFIG.mode, i)) {
$(".failsafeicon").addClass('active');
} else {
$(".failsafeicon").removeClass('active');
}
}
}
if (FC.ANALOG != undefined) {
let nbCells = Math.floor(FC.ANALOG.voltage / FC.BATTERY_CONFIG.vbatmaxcellvoltage) + 1;