mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 05:15:21 +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
|
||||
$('span.i2c-error').text(0);
|
||||
$('span.cycle-time').text(0);
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "3.0.0"))
|
||||
$('span.cpu-load').text('');
|
||||
|
||||
// unlock port select & baud
|
||||
$('div#port-picker #port').prop('disabled', false);
|
||||
|
@ -250,7 +252,10 @@ function onConnect() {
|
|||
$('#tabs ul.mode-disconnected').hide();
|
||||
$('#tabs ul.mode-connected').show();
|
||||
|
||||
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);
|
||||
|
||||
|
@ -432,7 +437,10 @@ function update_live_status() {
|
|||
|
||||
if (GUI.active_tab != 'cli') {
|
||||
MSP.send_message(MSP_codes.MSP_BOXNAMES, 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);
|
||||
}
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@
|
|||
<span i18n="statusbar_cycle_time"></span> <span class="cycle-time">0</span>
|
||||
</div>
|
||||
<div>
|
||||
<span class="cpu-load">CPU Load: 0%</span>
|
||||
<span class="cpu-load"> </span>
|
||||
</div>
|
||||
<div class="version">
|
||||
<!-- configuration version generated here -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue