mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: Allow BLE reconnection after connection drop (#3518)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e4ba6d6136
commit
58fda3d990
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ constructor(
|
|||
* @return true if the device changed, false if no change
|
||||
*/
|
||||
private fun setBondedDeviceAddress(address: String?): Boolean =
|
||||
if (getBondedDeviceAddress() == address && isStarted) {
|
||||
if (getBondedDeviceAddress() == address && isStarted && _connectionState.value == ConnectionState.CONNECTED) {
|
||||
Timber.w("Ignoring setBondedDevice ${address.anonymize}, because we are already using that device")
|
||||
false
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue