mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
parent
42101ec791
commit
0344110c2d
2 changed files with 164 additions and 160 deletions
|
@ -132,6 +132,11 @@ GUI_control.prototype.timeout_kill_all = function() {
|
|||
// default switch doesn't require callback to be set
|
||||
GUI_control.prototype.tab_switch_cleanup = function(callback) {
|
||||
switch (this.active_tab) {
|
||||
case 'initial_setup':
|
||||
GUI.interval_remove('initial_setup_data_pull');
|
||||
|
||||
if (callback) callback();
|
||||
break;
|
||||
case 'auxiliary_configuration':
|
||||
GUI.interval_remove('aux_data_poll');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue