kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
fix autobug - it seems someone out there is running some really old device code
rodzic
3c27021d8b
commit
e4363d04d5
|
@ -76,7 +76,8 @@ class BTScanModel(app: Application) : AndroidViewModel(app), Logging {
|
||||||
val oldEntry = oldDevs[addr]
|
val oldEntry = oldDevs[addr]
|
||||||
if (oldEntry == null || oldEntry.bonded != isBonded) {
|
if (oldEntry == null || oldEntry.bonded != isBonded) {
|
||||||
val entry = BTScanEntry(
|
val entry = BTScanEntry(
|
||||||
result.device.name,
|
result.device.name
|
||||||
|
?: "unnamed-$addr", // autobug: some devices might not have a name, if someone is running really old device code?
|
||||||
addr,
|
addr,
|
||||||
isBonded
|
isBonded
|
||||||
)
|
)
|
||||||
|
|
Ładowanie…
Reference in New Issue