mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix autobug, if we don't have a gatt currently, treat as a BLEException
This commit is contained in:
parent
38f45a9413
commit
238ae9a06c
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ class RadioInterfaceService : Service(), Logging {
|
|||
|
||||
|
||||
/// Our BLE device
|
||||
val device get() = safe!!.gatt!!
|
||||
val device get() = safe?.gatt ?: throw RadioNotConnectedException("No GATT")
|
||||
|
||||
/// Our service - note - it is possible to get back a null response for getService if the device services haven't yet been found
|
||||
val service
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue