mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-04 22:23:47 -04:00
fix autobug warning
com.geeksville.mesh.service.MeshService.getConnectedRadio (MeshService.java:223) com.geeksville.mesh.service.MeshService.sendToRadio (MeshService.java:230) com.geeksville.mesh.service.MeshService.sendToRadio (MeshService.java:237) com.geeksville.mesh.service.MeshService.sendPosition (MeshService.java:1255) com.geeksville.mesh.service.MeshService.access$getNodeDBbyID$p (MeshService.java:47) com.geeksville.mesh.service.MeshService$sendPositionScoped$1.invokeSuspend (MeshService.java:1265) kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (BaseContinuationImpl.java:33) kotlinx.coroutines.DispatchedTask.run (DispatchedTask.java:56) kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.java:571) kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.java:738) kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.java:678) kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.java:665)
This commit is contained in:
@@ -1262,7 +1262,12 @@ class MeshService : Service(), Logging {
|
||||
destNum: Int = NODENUM_BROADCAST,
|
||||
wantResponse: Boolean = false
|
||||
) = serviceScope.handledLaunch {
|
||||
sendPosition(lat, lon, alt, destNum, wantResponse)
|
||||
try {
|
||||
sendPosition(lat, lon, alt, destNum, wantResponse)
|
||||
}
|
||||
catch(ex: RadioNotConnectedException) {
|
||||
warn("Ignoring disconnected radio during gps location update")
|
||||
}
|
||||
}
|
||||
|
||||
/** Send our current radio config to the device
|
||||
|
||||
Reference in New Issue
Block a user