mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 23:05:19 +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() {
|
function reboot() {
|
||||||
GUI.log(chrome.i18n.getMessage('initialSetupEepromSaved'));
|
GUI.log(chrome.i18n.getMessage('initialSetupEepromSaved'));
|
||||||
GUI.tab_switch_cleanup();
|
|
||||||
|
|
||||||
|
GUI.tab_switch_cleanup(function() {
|
||||||
MSP.send_message(MSP_codes.MSP_SET_REBOOT, false, false, reinitialize);
|
MSP.send_message(MSP_codes.MSP_SET_REBOOT, false, false, reinitialize);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function reinitialize() {
|
function reinitialize() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue