mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +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();
|
||||
|
||||
MSP.send_message(MSPCodes.MSP_FEATURE_CONFIG, false, false);
|
||||
if (semver.gte(CONFIG.apiVersion, "1.33.0")) {
|
||||
MSP.send_message(MSPCodes.MSP_BATTERY_CONFIG, false, false);
|
||||
}
|
||||
|
|
2
main.js
2
main.js
|
@ -470,13 +470,11 @@ function updateTabList(features) {
|
|||
} else {
|
||||
$('#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')) {
|
||||
$('#tabs ul.mode-connected li.tab_osd').show();
|
||||
} else {
|
||||
$('#tabs ul.mode-connected li.tab_osd').hide();
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
function zeroPad(value, width) {
|
||||
|
|
|
@ -367,7 +367,7 @@ TABS.receiver.initialize = function (callback) {
|
|||
}
|
||||
|
||||
// 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++) {
|
||||
RX_plot_data[i].shift();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue