add debug output

pull/114/head
geeksville 2020-07-24 13:00:27 -07:00
rodzic a0dc45ea6f
commit ae117fcd9e
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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