1
0
forked from dyf/APP

修复蓝牙配对时,连接成功马上断开,再次连接提示正在连接中的问题

This commit is contained in:
liub
2026-05-20 14:18:28 +08:00
parent 958aa1374a
commit 6ec6003d3c
3 changed files with 13 additions and 9 deletions

View File

@ -946,7 +946,9 @@ class BleHelper {
return false;
});
this.updateCache();
if (f && f.device && f.device.id && this.data.available) {
//已绑定过的设备尝试重连
let fdis = this.data.Disconnect.find(dis => {
return dis === res.deviceId
}); //用户主动断开的,不再重连
@ -967,6 +969,9 @@ class BleHelper {
}
}else{
//未绑定过的设备播放连接锁
delete this.data.connectingDevices[res.deviceId];
}
if (this.cfg.bleDisposeCallback.length > 0) {
@ -1626,7 +1631,6 @@ class BleHelper {
}
}
if (this.data.platform == 'web') {
LinkedCallback();
return Promise.resolve(true);