mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-10-05 18:11:21 -04:00
better error message if we can't find the update service
This commit is contained in:
1 parent
92b3fa8d1f
commit
f7ca63ed92
1 file changed
+2
-1
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user