mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Added MSP to GPS provider options in configuration tab
This commit is contained in:
parent
cb9a4fcdf6
commit
e01465a659
1 changed files with 3 additions and 1 deletions
|
@ -531,6 +531,9 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
||||||
'NMEA',
|
'NMEA',
|
||||||
'UBLOX'
|
'UBLOX'
|
||||||
];
|
];
|
||||||
|
if (semver.gte(CONFIG.apiVersion, "1.41.0")) {
|
||||||
|
gpsProtocols.push('MSP');
|
||||||
|
}
|
||||||
|
|
||||||
var gpsBaudRates = [
|
var gpsBaudRates = [
|
||||||
'115200',
|
'115200',
|
||||||
|
@ -548,7 +551,6 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
||||||
'Indian GAGAN'
|
'Indian GAGAN'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
var gps_protocol_e = $('select.gps_protocol');
|
var gps_protocol_e = $('select.gps_protocol');
|
||||||
for (var i = 0; i < gpsProtocols.length; i++) {
|
for (var i = 0; i < gpsProtocols.length; i++) {
|
||||||
gps_protocol_e.append('<option value="' + i + '">' + gpsProtocols[i] + '</option>');
|
gps_protocol_e.append('<option value="' + i + '">' + gpsProtocols[i] + '</option>');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue