1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 06:15:13 +03:00

Fix serialportconfig (#3084)

This commit is contained in:
haslinghuis 2022-11-15 02:00:56 +01:00 committed by GitHub
parent 46f0bb3885
commit 6b78f369fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 8 deletions

View file

@ -860,7 +860,9 @@ function reinitializeConnection(callback) {
clearInterval(reconnect);
getStatus();
GUI.log(i18n.getMessage('deviceReady'));
callback?.();
if (callback === typeof('function')) {
callback();
}
} else {
attempts++;
if (attempts > 100) {