1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Fix intermittent connect failure (#3515)

This commit is contained in:
Mark Haslinghuis 2023-07-18 15:53:05 +02:00 committed by GitHub
parent 664e6722a8
commit edd34a1624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 13 deletions

View file

@ -761,7 +761,7 @@ export function reinitializeConnection(callback) {
clearInterval(reconnect);
gui_log(i18n.getMessage('deviceReady'));
if (callback === typeof('function')) {
if (typeof callback === 'function') {
callback();
}
} else {