mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
removing obsolete code / cleaning up
This commit is contained in:
parent
937dcf9742
commit
1f2180be89
2 changed files with 49 additions and 69 deletions
|
@ -29,13 +29,7 @@ function tab_initialize_auxiliary_configuration() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// UI Hooks
|
// UI Hooks
|
||||||
$('.tab-auxiliary_configuration .boxes input').change(function() {
|
|
||||||
// if any of the fields changed, unlock update button
|
|
||||||
$('a.update').addClass('active');
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.tab-auxiliary_configuration a.update').click(function() {
|
$('.tab-auxiliary_configuration a.update').click(function() {
|
||||||
if ($(this).hasClass('active')) {
|
|
||||||
// catch the input changes
|
// catch the input changes
|
||||||
var main_needle = 0;
|
var main_needle = 0;
|
||||||
var needle = 0;
|
var needle = 0;
|
||||||
|
@ -68,10 +62,6 @@ function tab_initialize_auxiliary_configuration() {
|
||||||
|
|
||||||
// Save changes to EEPROM
|
// Save changes to EEPROM
|
||||||
send_message(MSP_codes.MSP_EEPROM_WRITE, MSP_codes.MSP_EEPROM_WRITE);
|
send_message(MSP_codes.MSP_EEPROM_WRITE, MSP_codes.MSP_EEPROM_WRITE);
|
||||||
|
|
||||||
// remove the active status
|
|
||||||
$(this).removeClass('active');
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// enable data pulling
|
// enable data pulling
|
||||||
|
|
|
@ -99,7 +99,6 @@ function tab_initialize_receiver() {
|
||||||
}).change();
|
}).change();
|
||||||
|
|
||||||
$('a.update').click(function() {
|
$('a.update').click(function() {
|
||||||
if ($(this).hasClass('active')) {
|
|
||||||
// catch RC_tuning changes
|
// catch RC_tuning changes
|
||||||
RC_tuning.throttle_MID = parseFloat($('.tunings .throttle input[name="mid"]').val());
|
RC_tuning.throttle_MID = parseFloat($('.tunings .throttle input[name="mid"]').val());
|
||||||
RC_tuning.throttle_EXPO = parseFloat($('.tunings .throttle input[name="expo"]').val());
|
RC_tuning.throttle_EXPO = parseFloat($('.tunings .throttle input[name="expo"]').val());
|
||||||
|
@ -121,15 +120,6 @@ function tab_initialize_receiver() {
|
||||||
|
|
||||||
// Save changes to EEPROM
|
// Save changes to EEPROM
|
||||||
send_message(MSP_codes.MSP_EEPROM_WRITE, MSP_codes.MSP_EEPROM_WRITE);
|
send_message(MSP_codes.MSP_EEPROM_WRITE, MSP_codes.MSP_EEPROM_WRITE);
|
||||||
|
|
||||||
// remove the active status
|
|
||||||
$(this).removeClass('active');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.tunings input').change(function() {
|
|
||||||
// if any of the fields changed, unlock update button
|
|
||||||
$('a.update').addClass('active');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// enable RC data pulling
|
// enable RC data pulling
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue