fix autobug while shutting down interface

This commit is contained in:
Kevin Hester
2021-03-23 13:07:32 +08:00
parent 518241c3c9
commit 2327c5e693

View File

@@ -313,7 +313,7 @@ class BluetoothInterface(val service: RadioInterfaceService, val address: String
var fromNumChanged = false
private fun startWatchingFromNum() {
safe!!.setNotify(fromNum, true) {
safe?.setNotify(fromNum, true) {
// We might get multiple notifies before we get around to reading from the radio - so just set one flag
fromNumChanged = true
debug("fromNum changed")