mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 12:25:13 +03:00
Fix bug in MSP_ACTIVEBOXES decoding
In JS `(1<<32) == 1` so it was causing an issue when the FC was advertising more than 32 mode boxes
This commit is contained in:
parent
83bd7ac67f
commit
1b453762a1
6 changed files with 37 additions and 37 deletions
|
@ -37,28 +37,22 @@ helper.periodicStatusUpdater = (function () {
|
|||
|
||||
var active = ((Date.now() - MSP.analog_last_received_timestamp) < publicScope.getUpdateInterval(serial.bitrate) * 3);
|
||||
|
||||
for (var i = 0; i < AUX_CONFIG.length; i++) {
|
||||
if (AUX_CONFIG[i] == 'ARM') {
|
||||
if (bit_check(CONFIG.mode, i))
|
||||
$(".armedicon").css({
|
||||
'background-image': 'url("../images/icons/cf_icon_armed_active.svg")'
|
||||
});
|
||||
else
|
||||
$(".armedicon").css({
|
||||
'background-image': 'url("../images/icons/cf_icon_armed_grey.svg")'
|
||||
});
|
||||
}
|
||||
if (AUX_CONFIG[i] == 'FAILSAFE') {
|
||||
if (bit_check(CONFIG.mode, i))
|
||||
$(".failsafeicon").css({
|
||||
'background-image': 'url("../images/icons/cf_icon_failsafe_active.svg")'
|
||||
});
|
||||
else
|
||||
$(".failsafeicon").css({
|
||||
'background-image': 'url("../images/icons/cf_icon_failsafe_grey.svg")'
|
||||
});
|
||||
}
|
||||
}
|
||||
if (FC.isModeEnabled('ARM'))
|
||||
$(".armedicon").css({
|
||||
'background-image': 'url("../images/icons/cf_icon_armed_active.svg")'
|
||||
});
|
||||
else
|
||||
$(".armedicon").css({
|
||||
'background-image': 'url("../images/icons/cf_icon_armed_grey.svg")'
|
||||
});
|
||||
if (FC.isModeEnabled('FAILSAFE'))
|
||||
$(".failsafeicon").css({
|
||||
'background-image': 'url("../images/icons/cf_icon_failsafe_active.svg")'
|
||||
});
|
||||
else
|
||||
$(".failsafeicon").css({
|
||||
'background-image': 'url("../images/icons/cf_icon_failsafe_grey.svg")'
|
||||
});
|
||||
|
||||
if (ANALOG != undefined) {
|
||||
var nbCells;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue