mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
treat disabiling bluetooth as loss of connection
This commit is contained in:
parent
9e83bfd790
commit
8ce5a13cf8
4 changed files with 59 additions and 16 deletions
|
|
@ -53,8 +53,8 @@ class SoftwareUpdateService : JobIntentService(), Logging {
|
|||
|
||||
// we begin by setting our MTU size as high as it can go
|
||||
sync.requestMtu(512)
|
||||
|
||||
val service = sync.gatt.services.find { it.uuid == SW_UPDATE_UUID }!!
|
||||
|
||||
val service = sync.gatt!!.services.find { it.uuid == SW_UPDATE_UUID }!!
|
||||
|
||||
val totalSizeDesc = service.getCharacteristic(SW_UPDATE_TOTALSIZE_CHARACTER)
|
||||
val dataDesc = service.getCharacteristic(SW_UPDATE_DATA_CHARACTER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue