kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
add debug output
rodzic
a0dc45ea6f
commit
ae117fcd9e
|
@ -229,7 +229,7 @@ class BluetoothInterface(val service: RadioInterfaceService, val address: String
|
||||||
s.asyncWriteCharacteristic(toRadio, a) { r ->
|
s.asyncWriteCharacteristic(toRadio, a) { r ->
|
||||||
try {
|
try {
|
||||||
r.getOrThrow()
|
r.getOrThrow()
|
||||||
debug("write of ${a.size} bytes completed")
|
debug("write of ${a.size} bytes to $uuid completed")
|
||||||
|
|
||||||
if (isFirstSend) {
|
if (isFirstSend) {
|
||||||
isFirstSend = false
|
isFirstSend = false
|
||||||
|
@ -295,6 +295,7 @@ class BluetoothInterface(val service: RadioInterfaceService, val address: String
|
||||||
exceptionReporter {
|
exceptionReporter {
|
||||||
// If the gatt has been destroyed, skip the refresh attempt
|
// If the gatt has been destroyed, skip the refresh attempt
|
||||||
safe?.gatt?.let { gatt ->
|
safe?.gatt?.let { gatt ->
|
||||||
|
debug("DOING FORCE REFRESH")
|
||||||
val refresh: Method = gatt.javaClass.getMethod("refresh")
|
val refresh: Method = gatt.javaClass.getMethod("refresh")
|
||||||
refresh.invoke(gatt)
|
refresh.invoke(gatt)
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue