fix autobug - it seems someone out there is running some really old device code

This commit is contained in:
geeksville committed 2020-04-12 08:58:09 -07:00
1 parent 3c27021d8b
commit e4363d04d5
1 file changed
+2 -1
@@ -76,7 +76,8 @@ class BTScanModel(app: Application) : AndroidViewModel(app), Logging {
val oldEntry = oldDevs[addr]
if (oldEntry == null || oldEntry.bonded != isBonded) {
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,
isBonded
)