mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
Only apply to BF 3.0.0
This commit is contained in:
parent
1e063c08a0
commit
ef69489952
2 changed files with 13 additions and 5 deletions
|
@ -73,6 +73,8 @@ $(document).ready(function () {
|
||||||
// Reset various UI elements
|
// Reset various UI elements
|
||||||
$('span.i2c-error').text(0);
|
$('span.i2c-error').text(0);
|
||||||
$('span.cycle-time').text(0);
|
$('span.cycle-time').text(0);
|
||||||
|
if (semver.gte(CONFIG.flightControllerVersion, "3.0.0"))
|
||||||
|
$('span.cpu-load').text('');
|
||||||
|
|
||||||
// unlock port select & baud
|
// unlock port select & baud
|
||||||
$('div#port-picker #port').prop('disabled', false);
|
$('div#port-picker #port').prop('disabled', false);
|
||||||
|
@ -250,7 +252,10 @@ function onConnect() {
|
||||||
$('#tabs ul.mode-disconnected').hide();
|
$('#tabs ul.mode-disconnected').hide();
|
||||||
$('#tabs ul.mode-connected').show();
|
$('#tabs ul.mode-connected').show();
|
||||||
|
|
||||||
MSP.send_message(MSP_codes.MSP_STATUS_EX, false, false);
|
if (semver.gte(CONFIG.flightControllerVersion, "3.0.0"))
|
||||||
|
MSP.send_message(MSP_codes.MSP_STATUS_EX, false, false);
|
||||||
|
else
|
||||||
|
MSP.send_message(MSP_codes.MSP_STATUS, false, false);
|
||||||
|
|
||||||
MSP.send_message(MSP_codes.MSP_DATAFLASH_SUMMARY, false, false);
|
MSP.send_message(MSP_codes.MSP_DATAFLASH_SUMMARY, false, false);
|
||||||
|
|
||||||
|
@ -432,7 +437,10 @@ function update_live_status() {
|
||||||
|
|
||||||
if (GUI.active_tab != 'cli') {
|
if (GUI.active_tab != 'cli') {
|
||||||
MSP.send_message(MSP_codes.MSP_BOXNAMES, false, false);
|
MSP.send_message(MSP_codes.MSP_BOXNAMES, false, false);
|
||||||
MSP.send_message(MSP_codes.MSP_STATUS_EX, false, false);
|
if (semver.gte(CONFIG.flightControllerVersion, "3.0.0"))
|
||||||
|
MSP.send_message(MSP_codes.MSP_STATUS_EX, false, false);
|
||||||
|
else
|
||||||
|
MSP.send_message(MSP_codes.MSP_STATUS, false, false);
|
||||||
MSP.send_message(MSP_codes.MSP_ANALOG, false, false);
|
MSP.send_message(MSP_codes.MSP_ANALOG, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -251,7 +251,7 @@
|
||||||
<span i18n="statusbar_cycle_time"></span> <span class="cycle-time">0</span>
|
<span i18n="statusbar_cycle_time"></span> <span class="cycle-time">0</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span class="cpu-load">CPU Load: 0%</span>
|
<span class="cpu-load"> </span>
|
||||||
</div>
|
</div>
|
||||||
<div class="version">
|
<div class="version">
|
||||||
<!-- configuration version generated here -->
|
<!-- configuration version generated here -->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue