fix autobug, if we don't have a gatt currently, treat as a BLEException

This commit is contained in:
geeksville 2020-05-24 11:15:13 -07:00
parent 38f45a9413
commit 238ae9a06c

View file

@ -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