kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
refactor: improve handling for old firmware
rodzic
0832803c84
commit
1e081b4b30
|
@ -1611,8 +1611,9 @@ class MeshService : Service(), Logging {
|
||||||
|
|
||||||
if (deviceVersion < minDeviceVersion || appVersion < minAppVersion) {
|
if (deviceVersion < minDeviceVersion || appVersion < minAppVersion) {
|
||||||
info("Device firmware or app is too old, faking config so firmware update can occur")
|
info("Device firmware or app is too old, faking config so firmware update can occur")
|
||||||
clearLocalConfig()
|
setLocalConfig(config {
|
||||||
setLocalConfig(config { security = security.copy { isManaged = true } })
|
security = localConfig.security.copy { isManaged = true }
|
||||||
|
})
|
||||||
}
|
}
|
||||||
onHasSettings()
|
onHasSettings()
|
||||||
}
|
}
|
||||||
|
|
|
@ -165,7 +165,7 @@ private fun NodeDetailsItemList(
|
||||||
NavCard(
|
NavCard(
|
||||||
title = "Remote Administration",
|
title = "Remote Administration",
|
||||||
icon = Icons.Default.Settings,
|
icon = Icons.Default.Settings,
|
||||||
enabled = !metricsState.isManaged || !node.user.isLicensed
|
enabled = !metricsState.isManaged
|
||||||
) {
|
) {
|
||||||
onNavigate("RadioConfig")
|
onNavigate("RadioConfig")
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue