kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
fix autobug, if we don't have a gatt currently, treat as a BLEException
rodzic
38f45a9413
commit
238ae9a06c
|
@ -219,7 +219,7 @@ class RadioInterfaceService : Service(), Logging {
|
||||||
|
|
||||||
|
|
||||||
/// Our BLE device
|
/// 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
|
/// 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
|
val service
|
||||||
|
|
Ładowanie…
Reference in New Issue