1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

wait for cleanup callback, then reboot

This commit is contained in:
cTn 2014-09-16 21:18:14 +02:00
parent bfb6e17187
commit 57b4e3cafa

View file

@ -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() {