mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-18 05:45:25 +03:00
drop junk in input buffer before entering CLI
this could use some polishing but i think it will do for now close #21
This commit is contained in:
parent
c0937ddbd4
commit
39075c06ab
3 changed files with 42 additions and 32 deletions
|
@ -228,7 +228,8 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) {
|
|||
// we can setup an interval asking for data lets say every 200ms, when data arrives, callback will be triggered and tab switched
|
||||
// we could probably implement this someday
|
||||
GUI.timeout_add('waiting_for_bootup', function() {
|
||||
CLI_active = false;
|
||||
CLI_active = false;
|
||||
CLI_valid = false;
|
||||
|
||||
if (callback) callback();
|
||||
}, 5000); // if we dont allow enough time to reboot, CRC of "first" command sent will fail, keep an eye for this one
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue