mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
bugfix for tab inner re-initialization
This commit is contained in:
parent
8686a45831
commit
430d366c8f
2 changed files with 8 additions and 2 deletions
|
@ -136,9 +136,11 @@ function tab_initialize_initial_setup() {
|
|||
send_message(MSP_codes.MSP_RESET_CONF, MSP_codes.MSP_RESET_CONF, false, function() {
|
||||
GUI.log('Settings restored to <strong>default</strong>');
|
||||
|
||||
GUI.tab_switch_cleanup(function() {
|
||||
tab_initialize_initial_setup();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$('a.update').click(function() {
|
||||
|
|
|
@ -144,8 +144,12 @@ function tab_initialize_pid_tuning() {
|
|||
|
||||
// UI Hooks
|
||||
$('a.refresh').click(function() {
|
||||
GUI.tab_switch_cleanup(function() {
|
||||
GUI.log('PID data <strong>refreshed</strong>');
|
||||
|
||||
tab_initialize_pid_tuning();
|
||||
});
|
||||
});
|
||||
|
||||
$('a.update').click(function() {
|
||||
// Catch all the changes and stuff the inside PIDs array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue