mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +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() {
|
send_message(MSP_codes.MSP_RESET_CONF, MSP_codes.MSP_RESET_CONF, false, function() {
|
||||||
GUI.log('Settings restored to <strong>default</strong>');
|
GUI.log('Settings restored to <strong>default</strong>');
|
||||||
|
|
||||||
|
GUI.tab_switch_cleanup(function() {
|
||||||
tab_initialize_initial_setup();
|
tab_initialize_initial_setup();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$('a.update').click(function() {
|
$('a.update').click(function() {
|
||||||
|
|
|
@ -144,8 +144,12 @@ function tab_initialize_pid_tuning() {
|
||||||
|
|
||||||
// UI Hooks
|
// UI Hooks
|
||||||
$('a.refresh').click(function() {
|
$('a.refresh').click(function() {
|
||||||
|
GUI.tab_switch_cleanup(function() {
|
||||||
|
GUI.log('PID data <strong>refreshed</strong>');
|
||||||
|
|
||||||
tab_initialize_pid_tuning();
|
tab_initialize_pid_tuning();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
$('a.update').click(function() {
|
$('a.update').click(function() {
|
||||||
// Catch all the changes and stuff the inside PIDs array
|
// Catch all the changes and stuff the inside PIDs array
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue