mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 05:45:31 +03:00
parent
607abbd046
commit
5d1a8f7aa1
1 changed files with 6 additions and 0 deletions
|
@ -132,6 +132,11 @@ GUI_control.prototype.timeout_kill_all = function() {
|
||||||
// default switch doesn't require callback to be set
|
// default switch doesn't require callback to be set
|
||||||
GUI_control.prototype.tab_switch_cleanup = function(callback) {
|
GUI_control.prototype.tab_switch_cleanup = function(callback) {
|
||||||
switch (this.active_tab) {
|
switch (this.active_tab) {
|
||||||
|
case 'auxiliary_configuration':
|
||||||
|
GUI.interval_remove('aux_data_poll');
|
||||||
|
|
||||||
|
if (callback) callback();
|
||||||
|
break;
|
||||||
case 'cli':
|
case 'cli':
|
||||||
var bufferOut = new ArrayBuffer(5);
|
var bufferOut = new ArrayBuffer(5);
|
||||||
var bufView = new Uint8Array(bufferOut);
|
var bufView = new Uint8Array(bufferOut);
|
||||||
|
@ -154,6 +159,7 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) {
|
||||||
}, 5000); // if we dont allow enough time to reboot, CRC of "first" command sent will fail, keep an eye for this one
|
}, 5000); // if we dont allow enough time to reboot, CRC of "first" command sent will fail, keep an eye for this one
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (callback) callback();
|
if (callback) callback();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue