mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat(ble): Add support for LogRadio characteristic, enhance logs (#3691)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
ac5412b499
commit
6590ea0ef0
11 changed files with 318 additions and 143 deletions
|
|
@ -115,7 +115,7 @@ constructor(
|
|||
}
|
||||
|
||||
fun handleQueueStatus(queueStatus: MeshProtos.QueueStatus) {
|
||||
Timber.d("queueStatus ${queueStatus.toOneLineString()}")
|
||||
Timber.d("[queueStatus] ${queueStatus.toOneLineString()}")
|
||||
val (success, isFull, requestId) = with(queueStatus) { Triple(res == 0, free == 0, meshPacketId) }
|
||||
if (success && isFull) return // Queue is full, wait for free != 0
|
||||
if (requestId != 0) {
|
||||
|
|
@ -184,7 +184,7 @@ constructor(
|
|||
if (connectionStateHolder.getState() != ConnectionState.CONNECTED) throw RadioNotConnectedException()
|
||||
sendToRadio(ToRadio.newBuilder().apply { this.packet = packet })
|
||||
} catch (ex: Exception) {
|
||||
Timber.e("sendToRadio error:", ex)
|
||||
Timber.e(ex, "sendToRadio error: ${ex.message}")
|
||||
future.complete(false)
|
||||
}
|
||||
return future
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue