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

pull/28/head
geeksville 2020-04-12 08:58:09 -07:00
rodzic 3c27021d8b
commit e4363d04d5
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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
)