mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
better error message if we can't find the update service
This commit is contained in:
parent
92b3fa8d1f
commit
f7ca63ed92
1 changed files with 2 additions and 1 deletions
|
|
@ -268,7 +268,8 @@ class SoftwareUpdateService : JobIntentService(), Logging {
|
|||
fun doUpdate(context: Context, sync: SafeBluetooth, assetName: String) {
|
||||
try {
|
||||
val g = sync.gatt!!
|
||||
val service = g.services.find { it.uuid == SW_UPDATE_UUID }!!
|
||||
val service = g.services.find { it.uuid == SW_UPDATE_UUID }
|
||||
?: throw BLEException("Couldn't find update service")
|
||||
|
||||
info("Starting firmware update for $assetName")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue