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

Fix isWeb usage and missing callback (#3758)

* Fix isWeb usage

* Add missing callback

* Fix reinitialize connection
This commit is contained in:
Mark Haslinghuis 2024-01-16 13:00:42 +01:00 committed by GitHub
parent 5d553bac38
commit dcda393f7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 9 deletions

View file

@ -803,7 +803,7 @@ export function reinitializeConnection(callback) {
const reconnect = setInterval(waitforSerial, 100);
function waitforSerial() {
if (connectionTimestamp !== previousTimeStamp && CONFIGURATOR.connectionValid) {
if ((connectionTimestamp !== previousTimeStamp && CONFIGURATOR.connectionValid) || GUI.active_tab === 'firmware_flasher') {
console.log(`Serial connection available after ${attempts / 10} seconds`);
clearInterval(reconnect);
gui_log(i18n.getMessage('deviceReady'));