mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 00:35:26 +03:00
Made configurator aware of number of profiles supported by firmware. Made backup / restore more robust.
This commit is contained in:
parent
660dc1eea7
commit
6130798490
5 changed files with 27 additions and 12 deletions
|
@ -252,10 +252,18 @@ function onConnect() {
|
|||
$('#tabs ul.mode-disconnected').hide();
|
||||
$('#tabs ul.mode-connected').show();
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "3.0.0"))
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "3.0.0")) {
|
||||
MSP.send_message(MSP_codes.MSP_STATUS_EX, false, false);
|
||||
else
|
||||
} else {
|
||||
MSP.send_message(MSP_codes.MSP_STATUS, false, false);
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "2.4.0")) {
|
||||
CONFIG.numProfiles = 2;
|
||||
$('select[name="profilechange"] .profile3').hide();
|
||||
} else {
|
||||
CONFIG.numProfiles = 3;
|
||||
}
|
||||
}
|
||||
|
||||
MSP.send_message(MSP_codes.MSP_DATAFLASH_SUMMARY, false, false);
|
||||
|
||||
|
@ -269,7 +277,6 @@ function onConnect() {
|
|||
dataflash.show();
|
||||
|
||||
startLiveDataRefreshTimer();
|
||||
|
||||
}
|
||||
|
||||
function onClosed(result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue