mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-21 07:15:15 +03:00
Fixes for merge from cleanflight.
This commit is contained in:
parent
457700f052
commit
b729ffaf68
4 changed files with 6 additions and 7 deletions
|
@ -293,6 +293,7 @@ function onConnect() {
|
||||||
|
|
||||||
$('#tabs ul.mode-connected').show();
|
$('#tabs ul.mode-connected').show();
|
||||||
|
|
||||||
|
MSP.send_message(MSPCodes.MSP_FEATURE_CONFIG, false, false);
|
||||||
if (semver.gte(CONFIG.apiVersion, "1.33.0")) {
|
if (semver.gte(CONFIG.apiVersion, "1.33.0")) {
|
||||||
MSP.send_message(MSPCodes.MSP_BATTERY_CONFIG, false, false);
|
MSP.send_message(MSPCodes.MSP_BATTERY_CONFIG, false, false);
|
||||||
}
|
}
|
||||||
|
|
2
main.js
2
main.js
|
@ -470,13 +470,11 @@ function updateTabList(features) {
|
||||||
} else {
|
} else {
|
||||||
$('#tabs ul.mode-connected li.tab_transponder').hide();
|
$('#tabs ul.mode-connected li.tab_transponder').hide();
|
||||||
}
|
}
|
||||||
/* FIXME this approach doesn't work for OSD SLAVE boards as they don't have an 'OSD' feature.
|
|
||||||
if (features.isEnabled('OSD')) {
|
if (features.isEnabled('OSD')) {
|
||||||
$('#tabs ul.mode-connected li.tab_osd').show();
|
$('#tabs ul.mode-connected li.tab_osd').show();
|
||||||
} else {
|
} else {
|
||||||
$('#tabs ul.mode-connected li.tab_osd').hide();
|
$('#tabs ul.mode-connected li.tab_osd').hide();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function zeroPad(value, width) {
|
function zeroPad(value, width) {
|
||||||
|
|
|
@ -367,7 +367,7 @@ TABS.receiver.initialize = function (callback) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove old data from array
|
// Remove old data from array
|
||||||
while (RX_plot_data[0].length > 300) {
|
while (RX_plot_data.length > 300) {
|
||||||
for (var i = 0; i < RX_plot_data.length; i++) {
|
for (var i = 0; i < RX_plot_data.length; i++) {
|
||||||
RX_plot_data[i].shift();
|
RX_plot_data[i].shift();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue