kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
print scan errors to log
rodzic
68cc494021
commit
773e81d25f
|
@ -174,6 +174,7 @@ class BTScanModel(app: Application) : AndroidViewModel(app), Logging {
|
||||||
private val scanCallback = object : ScanCallback() {
|
private val scanCallback = object : ScanCallback() {
|
||||||
override fun onScanFailed(errorCode: Int) {
|
override fun onScanFailed(errorCode: Int) {
|
||||||
val msg = "Unexpected bluetooth scan failure: $errorCode"
|
val msg = "Unexpected bluetooth scan failure: $errorCode"
|
||||||
|
errormsg(msg)
|
||||||
// error code2 seeems to be indicate hung bluetooth stack
|
// error code2 seeems to be indicate hung bluetooth stack
|
||||||
errorText.value = msg
|
errorText.value = msg
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue