mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
add debug output
This commit is contained in:
parent
a0dc45ea6f
commit
ae117fcd9e
1 changed files with 2 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ class BluetoothInterface(val service: RadioInterfaceService, val address: String
|
|||
s.asyncWriteCharacteristic(toRadio, a) { r ->
|
||||
try {
|
||||
r.getOrThrow()
|
||||
debug("write of ${a.size} bytes completed")
|
||||
debug("write of ${a.size} bytes to $uuid completed")
|
||||
|
||||
if (isFirstSend) {
|
||||
isFirstSend = false
|
||||
|
|
@ -295,6 +295,7 @@ class BluetoothInterface(val service: RadioInterfaceService, val address: String
|
|||
exceptionReporter {
|
||||
// If the gatt has been destroyed, skip the refresh attempt
|
||||
safe?.gatt?.let { gatt ->
|
||||
debug("DOING FORCE REFRESH")
|
||||
val refresh: Method = gatt.javaClass.getMethod("refresh")
|
||||
refresh.invoke(gatt)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue