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

pull/40/head
geeksville 2020-05-24 11:15:13 -07:00
rodzic 38f45a9413
commit 238ae9a06c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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