mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-05 13:22:59 -05:00
better error message if we can't find the update service
This commit is contained in:
@@ -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