fix autobug: don't spam crashlytics when we expect position sending to fail

This commit is contained in:
Kevin Hester
2021-02-04 23:39:44 +08:00
parent 97d2ecbd0f
commit d11e7674f6
2 changed files with 4 additions and 2 deletions

View File

@@ -73,7 +73,9 @@ class MeshService : Service(), Logging {
class IdNotFoundException(id: String) : Exception("ID not found $id")
class NodeNumNotFoundException(id: Int) : Exception("NodeNum not found $id")
class IsUpdatingException() : Exception("Operation prohibited during firmware update")
/** We treat software update as similar to loss of comms to the regular bluetooth service (so things like sendPosition for background GPS ignores the problem */
class IsUpdatingException() : RadioNotConnectedException("Operation prohibited during firmware update")
/**
* Talk to our running service and try to set a new device address. And then immediately

View File

@@ -22,7 +22,7 @@ import kotlinx.coroutines.Job
import kotlinx.coroutines.cancel
class RadioNotConnectedException(message: String = "Not connected to radio") :
open class RadioNotConnectedException(message: String = "Not connected to radio") :
BLEException(message)