mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
wait for cleanup callback, then reboot
This commit is contained in:
parent
bfb6e17187
commit
57b4e3cafa
1 changed files with 3 additions and 2 deletions
|
@ -164,9 +164,10 @@ TABS.initial_setup.initialize = function (callback) {
|
|||
|
||||
function reboot() {
|
||||
GUI.log(chrome.i18n.getMessage('initialSetupEepromSaved'));
|
||||
GUI.tab_switch_cleanup();
|
||||
|
||||
MSP.send_message(MSP_codes.MSP_SET_REBOOT, false, false, reinitialize);
|
||||
GUI.tab_switch_cleanup(function() {
|
||||
MSP.send_message(MSP_codes.MSP_SET_REBOOT, false, false, reinitialize);
|
||||
});
|
||||
}
|
||||
|
||||
function reinitialize() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue