firmware update button is kinda in

This commit is contained in:
geeksville 2020-05-13 17:00:23 -07:00
parent a3aa6dc5b6
commit c1388d6bad
7 changed files with 71 additions and 22 deletions

View file

@ -12,6 +12,7 @@ import com.geeksville.android.BuildUtils.isEmulator
import com.geeksville.android.Logging
import com.geeksville.mesh.IMeshService
import com.geeksville.mesh.MeshProtos
import com.geeksville.mesh.MyNodeInfo
import com.geeksville.mesh.service.MeshService
/// Given a human name, strip out the first letter of the first three words and return that as the initials for
@ -64,6 +65,9 @@ class UIViewModel(app: Application) : AndroidViewModel(app), Logging {
val radioConfig = object : MutableLiveData<MeshProtos.RadioConfig?>(null) {
}
/// hardware info about our local device
val myNodeInfo = object : MutableLiveData<MyNodeInfo>(null) {}
override fun onCleared() {
super.onCleared()
debug("ViewModel cleared")