print scan errors to log

1.2-legacy
geeksville 2020-06-28 16:09:56 -07:00
rodzic 68cc494021
commit 773e81d25f
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -174,6 +174,7 @@ class BTScanModel(app: Application) : AndroidViewModel(app), Logging {
private val scanCallback = object : ScanCallback() {
override fun onScanFailed(errorCode: Int) {
val msg = "Unexpected bluetooth scan failure: $errorCode"
errormsg(msg)
// error code2 seeems to be indicate hung bluetooth stack
errorText.value = msg
}