mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-21 07:15:15 +03:00
Switched dshot beacon input to select to address issue #975
This commit is contained in:
parent
dbfe692278
commit
449da9c15f
2 changed files with 15 additions and 9 deletions
|
@ -239,7 +239,16 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
var dshotBeeper_e = $('.tab-configuration .dshotbeeper');
|
||||
var dshotBeacon_e = $('.tab-configuration .dshotbeacon');
|
||||
var dshotBeeperSwitch = $('#dshotBeeperSwitch');
|
||||
var dshotBeeperBeaconTone = $('#dshotBeeperBeaconTone');
|
||||
var dshotBeeperBeaconTone = $('select.dshotBeeperBeaconTone');
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||
for (var i = 1; i <= 5; i++) {
|
||||
dshotBeeperBeaconTone.append('<option value="' + (i) + '">'+ (i) + '</option>');
|
||||
}
|
||||
dshotBeeper_e.show();
|
||||
} else {
|
||||
dshotBeeper_e.hide();
|
||||
}
|
||||
|
||||
dshotBeeperSwitch.change(function() {
|
||||
if ($(this).is(':checked')) {
|
||||
|
@ -260,12 +269,6 @@ TABS.configuration.initialize = function (callback, scrollPosition) {
|
|||
dshotBeeperBeaconTone.val(BEEPER_CONFIG.dshotBeaconTone);
|
||||
dshotBeeperSwitch.prop('checked', BEEPER_CONFIG.dshotBeaconTone !== 0).change();
|
||||
|
||||
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||
dshotBeeper_e.show();
|
||||
} else {
|
||||
dshotBeeper_e.hide();
|
||||
}
|
||||
|
||||
// Analog Beeper
|
||||
var template = $('.beepers .beeper-template');
|
||||
var destination = $('.beepers .beeper-configuration');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue